]> git.lyx.org Git - lyx.git/blob - boost/boost/mpl/aux_/static_cast.hpp
dcb5be84536a10c671dbdf7b9a7dfe6d4140a7e7
[lyx.git] / boost / boost / mpl / aux_ / static_cast.hpp
1
2 #ifndef BOOST_MPL_AUX_STATIC_CAST_HPP_INCLUDED
3 #define BOOST_MPL_AUX_STATIC_CAST_HPP_INCLUDED
4
5 // + file: boost/mpl/aux_/static_cast.hpp
6 // + last modified: 02/may/03
7
8 // Copyright (c) 2001-03
9 // Aleksey Gurtovoy
10 //
11 // Permission to use, copy, modify, distribute and sell this software
12 // and its documentation for any purpose is hereby granted without fee, 
13 // provided that the above copyright notice appears in all copies and 
14 // that both the copyright notice and this permission notice appear in 
15 // supporting documentation. No representations are made about the 
16 // suitability of this software for any purpose. It is provided "as is" 
17 // without express or implied warranty.
18 //
19 // See http://www.boost.org/libs/mpl for documentation.
20
21 #include "boost/mpl/aux_/config/workaround.hpp"
22
23 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
24  || BOOST_WORKAROUND(__GNUC__, < 3) \
25  || BOOST_WORKAROUND(__MWERKS__, <= 0x3001)
26 #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) (T)(expr)
27 #else
28 #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
29 #endif
30
31 #endif // BOOST_MPL_AUX_STATIC_CAST_HPP_INCLUDED