]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/lexical_cast/example/generic_stringize.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / lexical_cast / example / generic_stringize.cpp
index d480ba5fa1d36816614019c983712ea9fa84af14..06b392b5b5fbdbc7daa2a4f5db83b40295b323fb 100644 (file)
@@ -1,9 +1,13 @@
-// Copyright 2013 Antony Polukhin
+// Copyright 2013-2017 Antony Polukhin
 
 // Distributed under the Boost Software License, Version 1.0.
 // (See the accompanying file LICENSE_1_0.txt
 // or a copy at <http://www.boost.org/LICENSE_1_0.txt>.)
 
+#include <boost/config.hpp>
+#ifdef BOOST_MSVC
+# pragma warning(disable: 4512) // generic_stringize.cpp(37) : warning C4512: 'stringize_functor' : assignment operator could not be generated
+#endif
 
 //[lexical_cast_stringize
 /*`
@@ -51,7 +55,7 @@ int main() {
     boost::tuple<char, int, char, int> decim('-', 10, 'e', 5);
     assert(stringize(decim) == "-10e5");
 
-    std::pair<short, std::string> value_and_type(270, "Kelvin");
+    std::pair<int, std::string> value_and_type(270, "Kelvin");
     assert(stringize(value_and_type) == "270Kelvin");
 }