]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/archive/text_iarchive.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / archive / text_iarchive.hpp
index d9d60adf0b8d3ac21995caf65934ae8ebc33e514..449f6639a6813cf4fdca201205ef802eb5f5c3ee 100644 (file)
@@ -9,7 +9,7 @@
 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
 // text_iarchive.hpp
 
-// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
+// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
 // Use, modification and distribution is subject to the Boost Software
 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
@@ -32,7 +32,7 @@
 #  pragma warning(disable : 4511 4512)
 #endif
 
-namespace boost { 
+namespace boost {
 namespace archive {
 
 namespace detail {
@@ -65,16 +65,16 @@ protected:
         load(v);
         t = boost::serialization::item_version_type(v);
     }
-    BOOST_ARCHIVE_DECL void 
+    BOOST_ARCHIVE_DECL void
     load(char * t);
     #ifndef BOOST_NO_INTRINSIC_WCHAR_T
-    BOOST_ARCHIVE_DECL void 
+    BOOST_ARCHIVE_DECL void
     load(wchar_t * t);
     #endif
-    BOOST_ARCHIVE_DECL void 
+    BOOST_ARCHIVE_DECL void
     load(std::string &s);
     #ifndef BOOST_NO_STD_WSTRING
-    BOOST_ARCHIVE_DECL void 
+    BOOST_ARCHIVE_DECL void
     load(std::wstring &ws);
     #endif
     template<class T>
@@ -85,10 +85,10 @@ protected:
     load_override(class_name_type & t);
     BOOST_ARCHIVE_DECL void
     init();
-    BOOST_ARCHIVE_DECL 
+    BOOST_ARCHIVE_DECL
     text_iarchive_impl(std::istream & is, unsigned int flags);
     // don't import inline definitions! leave this as a reminder.
-    //BOOST_ARCHIVE_DECL 
+    //BOOST_ARCHIVE_DECL
     ~text_iarchive_impl(){};
 };
 
@@ -106,16 +106,19 @@ protected:
 #  pragma warning(disable : 4511 4512)
 #endif
 
-namespace boost { 
+namespace boost {
 namespace archive {
 
-class BOOST_SYMBOL_VISIBLE text_iarchive : 
+class BOOST_SYMBOL_VISIBLE text_iarchive :
     public text_iarchive_impl<text_iarchive>{
 public:
     text_iarchive(std::istream & is_, unsigned int flags = 0) :
         // note: added _ to suppress useless gcc warning
         text_iarchive_impl<text_iarchive>(is_, flags)
-    {}
+    {
+        if(0 == (flags & no_header))
+             init();
+    }
     ~text_iarchive(){}
 };