From 7797b52f61104eab3390beb7bdaf505976440b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 24 Aug 2014 21:17:26 +0200 Subject: [PATCH] Added missing cstddef includes and corrected the use of plain "size_t" --- include/boost/move/detail/meta_utils.hpp | 1 + include/boost/move/make_unique.hpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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]());