Fix function_types failures.

This commit is contained in:
jzmaddock
2015-01-20 17:40:32 +00:00
parent 60547bfef9
commit 81c4b8f860
2 changed files with 26 additions and 1 deletions

View 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

View File

@@ -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;