Mercurial > hg > orthanc
comparison Resources/Samples/CppHelpers/Logging/ILogger.h @ 3467:324f6b966c7a
fix the fix
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 11 Jul 2019 10:24:37 +0200 |
parents | b61e74e68d41 |
children | 4c89b6160563 |
comparison
equal
deleted
inserted
replaced
3466:b61e74e68d41 | 3467:324f6b966c7a |
---|---|
1 #pragma once | 1 v#pragma once |
2 | 2 |
3 #include <string> | 3 #include <string> |
4 #include <vector> | 4 #include <vector> |
5 #include <boost/algorithm/string.hpp> | 5 #include <boost/algorithm/string.hpp> |
6 #include <boost/thread.hpp> | 6 #include <boost/thread.hpp> |
37 class BaseLogger : public ILogger | 37 class BaseLogger : public ILogger |
38 { | 38 { |
39 #if defined(BOOST_ENABLE_THREADS) | 39 #if defined(BOOST_ENABLE_THREADS) |
40 boost::thread_specific_ptr<std::vector<std::string>> contexts_; | 40 boost::thread_specific_ptr<std::vector<std::string>> contexts_; |
41 #else | 41 #else |
42 boost::thread_specific_ptr<std::vector<std::string>> contexts_; | 42 std::auto_ptr<std::vector<std::string>> contexts_; |
43 #endif | 43 #endif |
44 bool logContextChanges_; | 44 bool logContextChanges_; |
45 | 45 |
46 public: | 46 public: |
47 | 47 |