1
//-----------------------------------------------------------------------------
2
// boost mpl/aux_/config/nttp.hpp header file
3
// See http://www.boost.org for updates, documentation, and revision history.
4
//-----------------------------------------------------------------------------
6
// Copyright (c) 2001-02
9
// Permission to use, copy, modify, distribute and sell this software
10
// and its documentation for any purpose is hereby granted without fee,
11
// provided that the above copyright notice appears in all copies and
12
// that both the copyright notice and this permission notice appear in
13
// supporting documentation. No representations are made about the
14
// suitability of this software for any purpose. It is provided "as is"
15
// without express or implied warranty.
17
#ifndef BOOST_MPL_AUX_CONFIG_NTTP_HPP_INCLUDED
18
#define BOOST_MPL_AUX_CONFIG_NTTP_HPP_INCLUDED
20
#include "boost/mpl/aux_/config/msvc.hpp"
22
// MSVC 6.5 ICE-s on the code as simple as this:
25
// template< typename Char > struct string;
28
// void foo(std::string<char>);
30
// namespace boost { namespace mpl {
31
// template< int > struct arg;
34
// fortunately, a workaround is simple as well:
36
// typedef int nttp_int;
37
// template< nttp_int > struct arg;
39
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300
41
#include "boost/preprocessor/cat.hpp"
43
#if !defined(BOOST_MPL_PREPROCESSING_MODE)
44
namespace boost { namespace mpl {
46
typedef long nttp_long;
50
# define BOOST_MPL_AUX_NTTP_DECL(T, x) BOOST_PP_CAT(nttp_,T) x /**/
53
# define BOOST_MPL_AUX_NTTP_DECL(T, x) T x /**/
56
#endif // BOOST_MPL_AUX_CONFIG_NTTP_HPP_INCLUDED