]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/explicit_inst_map_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / container / test / explicit_inst_map_test.cpp
index 4a19429fcff29413a971855aaf4eee6c619c73e1..5a4a2b40848a49c9a2898d79f1b019ba66e581e9 100644 (file)
@@ -19,10 +19,38 @@ struct empty
 template class ::boost::container::map<empty, empty>;
 template class ::boost::container::multimap<empty, empty>;
 
+volatile ::boost::container::map<empty, empty> dummy;
+volatile ::boost::container::multimap<empty, empty> dummy2;
+
+#include <boost/container/allocator.hpp>
+#include <boost/container/adaptive_pool.hpp>
+#include "movable_int.hpp"
+#include "dummy_test_allocator.hpp"
+
+namespace boost {
+namespace container {
+
+typedef std::pair<const test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t;
+
+//Explicit instantiation to detect compilation errors
+
+//map
+template class map
+   < test::movable_and_copyable_int
+   , test::movable_and_copyable_int
+   , std::less<test::movable_and_copyable_int>
+   , test::simple_allocator< pair_t >
+   >;
+
+template class map
+   < test::movable_and_copyable_int
+   , test::movable_and_copyable_int
+   , std::less<test::movable_and_copyable_int>
+   , adaptive_pool< pair_t >
+   >;
+}} //boost::container
+
 int main()
 {
-   ::boost::container::map<empty, empty> dummy;
-   ::boost::container::multimap<empty, empty> dummy2;
-   (void)dummy; (void)dummy2;
    return 0;
 }