Imported Upstream version 1.64.0
[platform/upstream/boost.git] / boost / coroutine2 / detail / push_coroutine.hpp
index 1b62663..533d4f9 100644 (file)
@@ -72,14 +72,14 @@ public:
         push_coroutine< T > *   c_{ nullptr };
 
     public:
-        constexpr iterator() noexcept = default;
+        iterator() noexcept = default;
 
         explicit iterator( push_coroutine< T > * c) noexcept :
             c_{ c } {
         }
 
         iterator & operator=( T t) {
-            BOOST_ASSERT( c_);
+            BOOST_ASSERT( nullptr != c_);
             if ( ! ( * c_)( t) ) {
                 c_ = nullptr;
             }
@@ -150,14 +150,14 @@ public:
         push_coroutine< T & >   *   c_{ nullptr };
 
     public:
-        constexpr iterator() noexcept = default;
+        iterator() noexcept = default;
 
         explicit iterator( push_coroutine< T & > * c) noexcept :
             c_{ c } {
         }
 
         iterator & operator=( T & t) {
-            BOOST_ASSERT( c_);
+            BOOST_ASSERT( nullptr != c_);
             if ( ! ( * c_)( t) ) {
                 c_ = nullptr;
             }