]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/serialization/test/test_map_hashed.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / serialization / test / test_map_hashed.cpp
index 8b009cd2821719c642ed861159cc1706ceb94d3f..10e5defec578215a074c988bb0cceb3c6a38352d 100644 (file)
@@ -9,18 +9,20 @@
 
 // should pass compilation and execution
 
+#include <cstddef> // NULL, size_t
+#include <cstdio> // remove
+#include <fstream>
+
 #include <algorithm> // std::copy
 #include <vector>
-#include <fstream>
-#include <cstddef> // size_t, NULL
 
 #include <boost/config.hpp>
-#include <boost/detail/workaround.hpp>
 
-#include <cstdio>
+#include <boost/detail/workaround.hpp>
 #if defined(BOOST_NO_STDC_NAMESPACE)
 namespace std{
     using ::rand;
+    using ::remove;
     using ::size_t;
 }
 #endif
@@ -28,11 +30,17 @@ namespace std{
 #include "test_tools.hpp"
 
 #include <boost/serialization/nvp.hpp>
-#include <boost/serialization/map.hpp>
+#include <boost/serialization/hash_map.hpp>
 
 #include "A.hpp"
 #include "A.ipp"
 
+#ifndef BOOST_HAS_HASH
+#error "BOOST_HAS_HASH not defined!"
+#endif
+
+#include BOOST_HASH_MAP_HEADER
+
 ///////////////////////////////////////////////////////
 // a key value initialized with a random value for use
 // in testing STL map serialization
@@ -58,8 +66,6 @@ struct random_key {
     }
 };
 
-#include <boost/serialization/hash_map.hpp>
-
 namespace BOOST_STD_EXTENSION_NAMESPACE {
     template<>
     struct hash<random_key>{