changeset 3470:9aaf40d504a2

merge
author amazy
date Thu, 11 Jul 2019 11:49:15 +0200
parents a5e225eac0a9 (current diff) 4c89b6160563 (diff)
children 1fdbe5885783
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/Samples/CppHelpers/Logging/ILogger.h	Thu Jul 11 11:48:54 2019 +0200
+++ b/Resources/Samples/CppHelpers/Logging/ILogger.h	Thu Jul 11 11:49:15 2019 +0200
@@ -36,7 +36,11 @@
   // check LogContext class for more details
   class BaseLogger : public ILogger
   {
+#if defined(BOOST_ENABLE_THREADS)
     boost::thread_specific_ptr<std::vector<std::string>> contexts_;
+#else
+    std::auto_ptr<std::vector<std::string>> contexts_;
+#endif
     bool logContextChanges_;
 
   public: