]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/container/detail/addressof.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / container / detail / addressof.hpp
index b3b8a4dd6fa48f2944d365fa2c0cc5ea6d512e00..00679b8f7953ca8dbb93575454ea7865bb7f1d47 100644 (file)
 #  pragma once
 #endif
 
-#include <cstddef>
+#include <boost/move/detail/addressof.hpp>
 
 namespace boost {
 namespace container {
 namespace dtl {
 
-template <typename T>
-BOOST_CONTAINER_FORCEINLINE T* addressof(T& obj)
-{
-   return static_cast<T*>(
-      static_cast<void*>(
-         const_cast<char*>(
-            &reinterpret_cast<const volatile char&>(obj)
-   )));
-}
+using boost::move_detail::addressof;
 
 }  //namespace dtl {
 }  //namespace container {