Replies: 2 comments
-
The issue is that we can't simply change the parameter from This would break all existing code that passes normal variables to the logging functions. To properly support both moved and non-moved arguments, we'd need to either make It's a good feature request, but not as simple as it first appears |
Beta Was this translation helpful? Give feedback.
-
thanks for the response. If possible at some point, would be really nice to have! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some types that I'm perfectly comfortable moving for logging purposes. Would be a nice enhancement!
For instance, I create an nlohmann::json object with information I don't need after I log. Ideally I could just do
LOG_INFO(m_logger, "{}", std::move(my_json));
and avoid the copy altogether
Beta Was this translation helpful? Give feedback.
All reactions