]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/explicit_inst_vector_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / container / test / explicit_inst_vector_test.cpp
index b03427cebee97880d39c1aec90f5e0a11ae95e43..619dfc9566d4a39bbb397716bc5de64046e0e00b 100644 (file)
@@ -17,10 +17,31 @@ struct empty
 };
 
 template class ::boost::container::vector<empty>;
+volatile ::boost::container::vector<empty> dummy;
+
+#include <boost/container/allocator.hpp>
+#include "movable_int.hpp"
+#include "dummy_test_allocator.hpp"
+
+namespace boost {
+namespace container {
+
+//Explicit instantiation to detect compilation errors
+template class boost::container::vector
+   < test::movable_and_copyable_int
+   , test::simple_allocator<test::movable_and_copyable_int> >;
+
+template class boost::container::vector
+   < test::movable_and_copyable_int
+   , allocator<test::movable_and_copyable_int> >;
+
+template class vec_iterator<int*, true >;
+template class vec_iterator<int*, false>;
+
+}  //namespace boost {
+}  //namespace container {
 
 int main()
 {
-   ::boost::container::vector<empty> dummy;
-   (void)dummy;
    return 0;
 }