]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/explicit_inst_vector_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / container / test / explicit_inst_vector_test.cpp
index 6d2a2cca870fe57050d387ec48745c64516b204c..91413199a8c4d694dcc44da425486f069d32ba24 100644 (file)
@@ -22,6 +22,7 @@ volatile ::boost::container::vector<empty> dummy;
 #include <boost/container/allocator.hpp>
 #include "movable_int.hpp"
 #include "dummy_test_allocator.hpp"
+#include <boost/move/detail/force_ptr.hpp>
 
 class CustomAllocator
 {
@@ -33,7 +34,7 @@ class CustomAllocator
        typedef short difference_type;
 
        pointer allocate(size_type count)
-   {  return (pointer)new char[sizeof(value_type)*count]; }
+   {  return boost::move_detail::force_ptr<pointer>(new char[sizeof(value_type)*count]); }
 
        void deallocate(pointer ptr, size_type )
    {  delete [](char*)ptr; }