]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/context/fiber_winfib.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / context / fiber_winfib.hpp
index f2612fd8e3f7cdccba566bfcf14572a46343dc4f..0b09dd79ef38ad0321eb0a9bd2d636678f20a05d 100644 (file)
@@ -410,7 +410,9 @@ public:
     bool operator<( fiber const& other) const noexcept {
         return ptr_ < other.ptr_;
     }
-
+    
+    #if !defined(BOOST_EMBTC)
+    
     template< typename charT, class traitsT >
     friend std::basic_ostream< charT, traitsT > &
     operator<<( std::basic_ostream< charT, traitsT > & os, fiber const& other) {
@@ -421,11 +423,33 @@ public:
         }
     }
 
+    #else
+    
+    template< typename charT, class traitsT >
+    friend std::basic_ostream< charT, traitsT > &
+    operator<<( std::basic_ostream< charT, traitsT > & os, fiber const& other);
+
+    #endif
+
     void swap( fiber & other) noexcept {
         std::swap( ptr_, other.ptr_);
     }
 };
 
+#if defined(BOOST_EMBTC)
+
+    template< typename charT, class traitsT >
+    inline std::basic_ostream< charT, traitsT > &
+    operator<<( std::basic_ostream< charT, traitsT > & os, fiber const& other) {
+        if ( nullptr != other.ptr_) {
+            return os << other.ptr_;
+        } else {
+            return os << "{not-a-context}";
+        }
+    }
+
+#endif
+
 inline
 void swap( fiber & l, fiber & r) noexcept {
     l.swap( r);