21 Mar
2014
21 Mar
'14
12:34 a.m.
On 3/20/2014 7:27 PM, Michael Marcin wrote:
Specifically I have boost Log compiled as a static library but I'm only using boost.log from a single dll so from my reading of that guideline it doesn't apply.
In the meantime I've just changed to using a function local static and relying upon c++11 magic statics to make it's initialization safe. i.e. logger_type& my_logger() { static logger_type lg; return lg; } BOOST_LOG_SEV( my_logger(), ... )