Currently we always need to create a temporal variable to get a config value. And we don't know, was it really initialised.
I added simple callbacks for it. It's not the best what we can reach, but it's pretty limited by CppSupport. So syntax sugar can be added later.
Example of usages:
g_Config.GetValue<bool>("...", [this](const bool& ...) { objectPointer->SetProperty(...); }); g_Config.GetValue<bool>("...", std::function<void(const bool&)>( std::bind(&Class::SetProperty, objectPointer, std::placeholders::_1) ));
It's also needed for D1571.