mirror of
https://github.com/boostorg/type_traits.git
synced 2025-08-02 05:54:31 +02:00
Fix function_types failures.
This commit is contained in:
21
include/boost/type_traits/config.hpp
Normal file
21
include/boost/type_traits/config.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
|
||||
// Use, modification and distribution are subject to 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).
|
||||
//
|
||||
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
|
||||
|
||||
#ifndef BOOST_TT_OLD_CONFIG_HPP_INCLUDED
|
||||
#define BOOST_TT_OLD_CONFIG_HPP_INCLUDED
|
||||
|
||||
//
|
||||
// This header is deprecated and no longer used by type_traits:
|
||||
//
|
||||
#if defined(__GNUC__) || defined(_MSC_VER)
|
||||
# pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated")
|
||||
#endif
|
||||
|
||||
#endif // BOOST_TT_CONFIG_HPP_INCLUDED
|
||||
|
||||
|
@@ -21,6 +21,7 @@ namespace boost{
|
||||
{
|
||||
template <bool B> struct bool_;
|
||||
template <class I, I val> struct integral_c;
|
||||
struct integral_c_tag;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +31,7 @@ namespace mpl_{
|
||||
|
||||
template <bool B> struct bool_;
|
||||
template <class I, I val> struct integral_c;
|
||||
|
||||
struct integral_c_tag;
|
||||
}
|
||||
|
||||
namespace boost
|
||||
@@ -39,6 +40,7 @@ namespace boost
|
||||
{
|
||||
using ::mpl_::bool_;
|
||||
using ::mpl_::integral_c;
|
||||
using ::mpl_::integral_c_tag;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +51,8 @@ namespace boost{
|
||||
template <class T, T val>
|
||||
struct integral_constant
|
||||
{
|
||||
typedef mpl::integral_c_tag tag;
|
||||
typedef T value_type;
|
||||
typedef integral_constant<T, val> type;
|
||||
static const T value = val;
|
||||
|
||||
|
Reference in New Issue
Block a user