]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/test/heap_allocator_v1.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / test / heap_allocator_v1.hpp
index 278d52e035b6eb074ec688644bd775d97cb16274..85ad5f861a05d501f79a9cbc36b2f41c311830fb 100644 (file)
@@ -115,7 +115,7 @@ class heap_allocator_v1
    {
       (void)hint;
       char *raw_mem = ::new char[sizeof(value_type)*count];
-      return boost::intrusive::pointer_traits<pointer>::pointer_to(reinterpret_cast<value_type &>(*raw_mem));
+      return boost::intrusive::pointer_traits<pointer>::pointer_to(*reinterpret_cast<value_type *>((void*)raw_mem));
    }
 
    //!Deallocates memory previously allocated. Never throws