Repository navigation
Replies: 2 comments 3 replies
|
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 |
3 replies
|
thanks for the response. If possible at some point, would be really nice to have! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
All reactions