Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83099 - trunk/boost/atomic
From: andrey.semashev_at_[hidden]
Date: 2013-02-23 10:24:58


Author: andysem
Date: 2013-02-23 10:24:58 EST (Sat, 23 Feb 2013)
New Revision: 83099
URL: http://svn.boost.org/trac/boost/changeset/83099

Log:
Added missing constexpr/noexcept.
Text files modified:
   trunk/boost/atomic/atomic.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/atomic/atomic.hpp
==============================================================================
--- trunk/boost/atomic/atomic.hpp (original)
+++ trunk/boost/atomic/atomic.hpp 2013-02-23 10:24:58 EST (Sat, 23 Feb 2013)
@@ -216,16 +216,16 @@
 class atomic_flag
 {
 public:
- atomic_flag(void) : v_(false) {}
+ BOOST_CONSTEXPR atomic_flag(void) BOOST_NOEXCEPT : v_(false) {}
 
     bool
- test_and_set(memory_order order = memory_order_seq_cst)
+ test_and_set(memory_order order = memory_order_seq_cst) BOOST_NOEXCEPT
     {
         return v_.exchange(true, order);
     }
 
     void
- clear(memory_order order = memory_order_seq_cst) volatile
+ clear(memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
     {
         v_.store(false, order);
     }


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