~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/mpl/aux_/config/nttp.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
// boost mpl/aux_/config/nttp.hpp header file
 
3
// See http://www.boost.org for updates, documentation, and revision history.
 
4
//-----------------------------------------------------------------------------
 
5
//
 
6
// Copyright (c) 2001-02
 
7
// Aleksey Gurtovoy
 
8
//
 
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.
 
16
 
 
17
#ifndef BOOST_MPL_AUX_CONFIG_NTTP_HPP_INCLUDED
 
18
#define BOOST_MPL_AUX_CONFIG_NTTP_HPP_INCLUDED
 
19
 
 
20
#include "boost/mpl/aux_/config/msvc.hpp"
 
21
 
 
22
// MSVC 6.5 ICE-s on the code as simple as this:
 
23
//
 
24
//    namespace std {
 
25
//    template< typename Char > struct string;
 
26
//    }
 
27
//
 
28
//    void foo(std::string<char>);
 
29
//
 
30
//    namespace boost { namespace mpl {
 
31
//    template< int > struct arg;
 
32
//    }}
 
33
//
 
34
// fortunately, a workaround is simple as well:
 
35
//
 
36
//    typedef int nttp_int;
 
37
//    template< nttp_int > struct arg;
 
38
 
 
39
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300
 
40
 
 
41
#include "boost/preprocessor/cat.hpp"
 
42
 
 
43
#if !defined(BOOST_MPL_PREPROCESSING_MODE)
 
44
namespace boost { namespace mpl {
 
45
typedef int     nttp_int;
 
46
typedef long    nttp_long;
 
47
}}
 
48
#endif
 
49
 
 
50
#   define BOOST_MPL_AUX_NTTP_DECL(T, x) BOOST_PP_CAT(nttp_,T) x /**/
 
51
 
 
52
#else
 
53
#   define BOOST_MPL_AUX_NTTP_DECL(T, x) T x /**/
 
54
#endif
 
55
 
 
56
#endif // BOOST_MPL_AUX_CONFIG_NTTP_HPP_INCLUDED