From ea073efb43646cd7c7a4ff268a45fe3538a1141f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 20 Dec 2017 15:58:18 +0200 Subject: [PATCH] Move mp_void to detail/mp_void.hpp --- include/boost/mp11/detail/mp_void.hpp | 32 +++++++++++++++++++++++++++ include/boost/mp11/function.hpp | 13 ++--------- 2 files changed, 34 insertions(+), 11 deletions(-) create mode 100644 include/boost/mp11/detail/mp_void.hpp diff --git a/include/boost/mp11/detail/mp_void.hpp b/include/boost/mp11/detail/mp_void.hpp new file mode 100644 index 0000000..a7ac7b7 --- /dev/null +++ b/include/boost/mp11/detail/mp_void.hpp @@ -0,0 +1,32 @@ +#ifndef BOOST_MP11_DETAIL_MP_VOID_HPP_INCLUDED +#define BOOST_MP11_DETAIL_MP_VOID_HPP_INCLUDED + +// Copyright 2015-2017 Peter Dimov. +// +// Distributed under the Boost Software License, Version 1.0. +// +// See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt + +namespace boost +{ +namespace mp11 +{ + +// mp_void +namespace detail +{ + +template struct mp_void_impl +{ + using type = void; +}; + +} // namespace detail + +template using mp_void = typename detail::mp_void_impl::type; + +} // namespace mp11 +} // namespace boost + +#endif // #ifndef BOOST_MP11_DETAIL_MP_VOID_HPP_INCLUDED diff --git a/include/boost/mp11/function.hpp b/include/boost/mp11/function.hpp index ddcd45d..596f063 100644 --- a/include/boost/mp11/function.hpp +++ b/include/boost/mp11/function.hpp @@ -14,6 +14,7 @@ #include #include #include +#include #include namespace boost @@ -22,17 +23,7 @@ namespace mp11 { // mp_void -namespace detail -{ - -template struct mp_void_impl -{ - using type = void; -}; - -} // namespace detail - -template using mp_void = typename detail::mp_void_impl::type; +// in detail/mp_void.hpp // mp_and #if BOOST_WORKAROUND( BOOST_MSVC, < 1910 )