]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/optional/test/optional_test_io.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / optional / test / optional_test_io.cpp
index 14c2b26fc78c287d067ace640156e3bb4877ff59..8086c11ce42af775e4e60799d2e04c2e09c4b895 100644 (file)
 // You are welcome to contact the author at:
 //  fernando_cacciola@hotmail.com
 
-#include <sstream>
 #include "boost/optional/optional.hpp"
 #include "boost/optional/optional_io.hpp"
+#include "boost/core/lightweight_test.hpp"
+
+#ifndef BOOST_NO_IOSTREAM
+
+#include <sstream>
 
 #ifdef BOOST_BORLANDC
 #pragma hdrstop
 #endif
 
-#include "boost/core/lightweight_test.hpp"
+
 
 using boost::optional;
 
@@ -29,7 +33,7 @@ void test2( Opt o, Opt buff )
 
   const int markv = 123 ;
   int mark = 0 ;
-  
+
   s << o << " " << markv ;
   s >> buff >> mark ;
 
@@ -85,3 +89,12 @@ int main()
 
   return boost::report_errors();
 }
+
+#else // BOOST_NO_IOSTREAM
+
+int main()
+{
+  return boost::report_errors();
+}
+
+#endif // BOOST_NO_IOSTREAM