]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/convert/test/test.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / convert / test / test.hpp
index e2fbbc6e6ef85f4d7b1ac1ea5d959c560f10b3c1..b57b7759b729ca8f505dd5fdd3cfb7e0a86c7e8f 100644 (file)
@@ -1,4 +1,4 @@
-// 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.
 
@@ -7,13 +7,14 @@
 
 #include <boost/convert/detail/config.hpp>
 #include <boost/make_default.hpp>
-#include <boost/static_assert.hpp>
+#include <boost/detail/lightweight_test.hpp>
 #include <string>
 #include <istream>
-#include <string.h> // For strlen, strcmp, memcpy
-#include <memory.h> // Is needed for 'memset'
-#include <stdio.h>
-#include <time.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring> // For strlen, strcmp, memcpy
+#include <climits>
+#include <ctime>
 
 #if defined(_MSC_VER)
 #   pragma warning(disable: 4189) // local variable is initialized but not referenced.
@@ -112,10 +113,10 @@ namespace boost
 //[my_string_declaration
 struct my_string
 {
-    typedef my_string              this_type;
-    typedef char                  value_type;
-    typedef value_type*             iterator;
-    typedef value_type const* const_iterator;
+    using      this_type = my_string;
+    using     value_type = char;
+    using       iterator = value_type*;
+    using const_iterator = value_type const*;
 
     my_string ();
     my_string (const_iterator, const_iterator =0);