summaryrefslogtreecommitdiff
path: root/boost/atomic/detail/atomic_flag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/atomic/detail/atomic_flag.hpp')
-rw-r--r--boost/atomic/detail/atomic_flag.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/boost/atomic/detail/atomic_flag.hpp b/boost/atomic/detail/atomic_flag.hpp
index 7fb44cdb1a..6f5fc8acc3 100644
--- a/boost/atomic/detail/atomic_flag.hpp
+++ b/boost/atomic/detail/atomic_flag.hpp
@@ -55,6 +55,7 @@ struct atomic_flag
BOOST_FORCEINLINE void clear(memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
{
+ BOOST_ASSERT(order != memory_order_consume);
BOOST_ASSERT(order != memory_order_acquire);
BOOST_ASSERT(order != memory_order_acq_rel);
operations::clear(m_storage.value, order);