]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/emplace_test.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / container / test / emplace_test.hpp
index f017d9550adce2d5cfd75ab76e756e9c66d22d8c..d756579c14a9b6c72842a226d306203f1ba4aede 100644 (file)
@@ -17,6 +17,7 @@
 #include <boost/container/detail/mpl.hpp>
 #include <boost/move/utility_core.hpp>
 #include <boost/container/detail/type_traits.hpp>
+#include <boost/move/detail/force_ptr.hpp> //adl_move_swap
 
 namespace boost{
 namespace container {
@@ -151,7 +152,7 @@ static boost::container::dtl::aligned_storage<sizeof(EmplaceIntPair)*10>::type p
 
 static EmplaceIntPair* initialize_emplace_int_pair()
 {
-   EmplaceIntPair* ret = reinterpret_cast<EmplaceIntPair*>(&pair_storage);
+   EmplaceIntPair* ret = move_detail::force_ptr<EmplaceIntPair*>(&pair_storage);
    for(unsigned int i = 0; i != 10; ++i){
       new(&ret->first)EmplaceInt();
       new(&ret->second)EmplaceInt();