Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82843 - trunk/libs/thread/src
From: vicente.botet_at_[hidden]
Date: 2013-02-12 15:14:12


Author: viboes
Date: 2013-02-12 15:14:11 EST (Tue, 12 Feb 2013)
New Revision: 82843
URL: http://svn.boost.org/trac/boost/changeset/82843

Log:
Thread: move local static variable to file scope in future_category.
Text files modified:
   trunk/libs/thread/src/future.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/thread/src/future.cpp
==============================================================================
--- trunk/libs/thread/src/future.cpp (original)
+++ trunk/libs/thread/src/future.cpp 2013-02-12 15:14:11 EST (Tue, 12 Feb 2013)
@@ -48,13 +48,13 @@
         }
         return std::string("unspecified future_errc value\n");
     }
+ future_error_category future_error_category_var;
   }
 
   const system::error_category&
   future_category() BOOST_NOEXCEPT
   {
- static thread_detail::future_error_category f;
- return f;
+ return thread_detail::future_error_category_var;
   }
 
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk