Stop using mpl::void_ in reference_content

This commit is contained in:
Daniel James
2018-04-08 19:08:14 +01:00
parent abfaa1443a
commit 3fc08cca25

View File

@ -18,12 +18,12 @@
# include "boost/type_traits/integral_constant.hpp" # include "boost/type_traits/integral_constant.hpp"
# include "boost/type_traits/has_nothrow_copy.hpp" # include "boost/type_traits/has_nothrow_copy.hpp"
#include "boost/mpl/void.hpp"
namespace boost { namespace boost {
namespace detail { namespace detail {
struct void_type {};
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// (detail) class template reference_content // (detail) class template reference_content
// //
@ -71,7 +71,7 @@ public: // queries
// Wraps with reference_content if specified type is reference. // Wraps with reference_content if specified type is reference.
// //
template <typename T = mpl::void_> struct make_reference_content; template <typename T = void_type> struct make_reference_content;
template <typename T> template <typename T>
@ -88,7 +88,7 @@ struct make_reference_content< T& >
template <> template <>
struct make_reference_content< mpl::void_ > struct make_reference_content< void_type >
{ {
template <typename T> template <typename T>
struct apply struct apply
@ -96,7 +96,7 @@ struct make_reference_content< mpl::void_ >
{ {
}; };
typedef mpl::void_ type; typedef void_type type;
}; };
} // namespace detail } // namespace detail