diff --git a/include/boost/smart_ptr/detail/array_helper.hpp b/include/boost/smart_ptr/detail/array_helper.hpp index 72b470c..96ecf1b 100644 --- a/include/boost/smart_ptr/detail/array_helper.hpp +++ b/include/boost/smart_ptr/detail/array_helper.hpp @@ -13,6 +13,14 @@ namespace boost { namespace detail { template struct array_helper { + static void create(T& value) { + void* p1 = &value; + ::new(p1) T(); + } + static void create_noinit(T& value) { + void* p1 = &value; + ::new(p1) T; + } static void destroy(T& value) { value.~T(); }