diff --git a/include/boost/smart_ptr/allocate_shared_array.hpp b/include/boost/smart_ptr/allocate_shared_array.hpp index 086cd05..25c366e 100644 --- a/include/boost/smart_ptr/allocate_shared_array.hpp +++ b/include/boost/smart_ptr/allocate_shared_array.hpp @@ -44,7 +44,7 @@ namespace boost { size_t n1 = size * detail::array_size::size; detail::allocate_array_helper a1(allocator, n1, &p2); detail::array_deleter d1; - shared_ptr s1(p2, d1, a1); + shared_ptr s1(p1, d1, a1); detail::array_deleter* d2; p1 = reinterpret_cast(p2); d2 = get_deleter >(s1);