diff --git a/include/boost/smart_ptr/make_unique_object.hpp b/include/boost/smart_ptr/make_unique_object.hpp index c392e24..9e6108a 100644 --- a/include/boost/smart_ptr/make_unique_object.hpp +++ b/include/boost/smart_ptr/make_unique_object.hpp @@ -11,6 +11,7 @@ #include #include +#include #include namespace boost { @@ -30,7 +31,7 @@ namespace boost { template inline typename boost::detail::up_if_not_array::type - make_unique(T&& value) { + make_unique(typename add_rvalue_reference::type value) { return std::unique_ptr(new T(std::move(value))); }