diff --git a/include/boost/move/detail/meta_utils.hpp b/include/boost/move/detail/meta_utils.hpp index 30fd58f..e246ae3 100644 --- a/include/boost/move/detail/meta_utils.hpp +++ b/include/boost/move/detail/meta_utils.hpp @@ -15,6 +15,7 @@ #define BOOST_MOVE_DETAIL_META_UTILS_HPP #include +#include //for std::size_t //Small meta-typetraits to support move diff --git a/include/boost/move/make_unique.hpp b/include/boost/move/make_unique.hpp index 30aa8d8..825a66a 100644 --- a/include/boost/move/make_unique.hpp +++ b/include/boost/move/make_unique.hpp @@ -15,6 +15,7 @@ #include #include #include +#include //for std::size_t #include #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) @@ -52,7 +53,7 @@ struct unique_ptr_if typedef ::boost::movelib::unique_ptr t_is_array_of_unknown_bound; }; -template +template struct unique_ptr_if { typedef void t_is_array_of_known_bound; @@ -120,7 +121,7 @@ inline #else typename ::boost::move_detail::unique_ptr_if::t_is_array_of_unknown_bound #endif - make_unique(size_t n) + make_unique(std::size_t n) { typedef typename ::boost::move_detail::remove_extent::type U; return unique_ptr(new U[n]());