mirror of
https://github.com/boostorg/detail.git
synced 2025-08-02 13:54:27 +02:00
Added type_traits specializations.
[SVN r19894]
This commit is contained in:
@@ -19,7 +19,11 @@
|
|||||||
|
|
||||||
#include "boost/config.hpp"
|
#include "boost/config.hpp"
|
||||||
|
|
||||||
#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
|
# include "boost/mpl/bool.hpp"
|
||||||
|
# include "boost/type_traits/has_nothrow_constructor.hpp"
|
||||||
|
# include "boost/type_traits/has_nothrow_copy.hpp"
|
||||||
|
#else
|
||||||
# include "boost/utility/addressof.hpp"
|
# include "boost/utility/addressof.hpp"
|
||||||
# include "boost/type.hpp"
|
# include "boost/type.hpp"
|
||||||
# include "boost/mpl/if.hpp"
|
# include "boost/mpl/if.hpp"
|
||||||
@@ -29,6 +33,7 @@
|
|||||||
#include "boost/mpl/void.hpp"
|
#include "boost/mpl/void.hpp"
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -175,6 +180,31 @@ struct make_reference_content< mpl::void_ >
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
// reference_content<T&> type traits specializations
|
||||||
|
//
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
struct has_nothrow_constructor<
|
||||||
|
::boost::detail::reference_content< T& >
|
||||||
|
>
|
||||||
|
: mpl::true_
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
struct has_nothrow_copy<
|
||||||
|
::boost::detail::reference_content< T& >
|
||||||
|
>
|
||||||
|
: mpl::true_
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // BOOST_DETAIL_REFERENCE_CONTENT_HPP
|
#endif // BOOST_DETAIL_REFERENCE_CONTENT_HPP
|
||||||
|
Reference in New Issue
Block a user