]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/convert/test/stream_converter.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / convert / test / stream_converter.cpp
index fcab03da3e26d7ceac52dd339ee8017ad9c3c3a8..2f79831dfa762e00f2a9cc782f69d6698a328d44 100644 (file)
@@ -1,5 +1,5 @@
 // Boost.Convert test and usage example
-// Copyright (c) 2009-2016 Vladimir Batov.
+// Copyright (c) 2009-2020 Vladimir Batov.
 // Use, modification and distribution are subject to the Boost Software License,
 // Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
 
@@ -11,7 +11,6 @@ int main(int, char const* []) { return 0; }
 
 #include <boost/convert.hpp>
 #include <boost/convert/stream.hpp>
-#include <boost/detail/lightweight_test.hpp>
 #include <cstdio>
 #include <cstdlib>
 #include <stdlib.h>
@@ -197,8 +196,8 @@ static
 void
 test_manipulators()
 {
-    boost::cnv::cstream ccnv;
-    boost::cnv::wstream wcnv;
+    auto ccnv = boost::cnv::cstream();
+    auto wcnv = boost::cnv::wstream();
 
     int const hex_v01 = boost::convert<int>("FF", ccnv(std::hex)).value_or(0);
     int const hex_v02 = boost::convert<int>(L"F", wcnv(std::hex)).value_or(0);