Vote count:
0
I'm trying unsuccessfully to use the macro BOOST_LOG_NAMED_SCOPE with no hard-coding (e.g no BOOST_LOG_NAMED_SCOPE("bla"), but BOOST_LOG_NAMED_SCOPE(some_variable); this macro uses inside a boost::log::string_literal that have no C'tor for std::string or char*. The only thing it accepts is const char[] (NOT const char*) - which doesn't help me at all because I can't hard-code it - this value mast be retrieved from a function.
So, I need to find a way to construct boost::log::string_literal with std::string or char*, or somehow to edit const char[]... (I tried also to create a char[] and cast it to const char[], but failed)
A huge thanks and a lot of proud will be given to the one that solves this :)
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire