From f3d8469b59e9e8cec6a835649e1e7ba408651075 Mon Sep 17 00:00:00 2001 From: Arkadiy Vertleyb Date: Sat, 25 Feb 2006 05:06:29 +0000 Subject: [PATCH] disabled typeof emulation for cw-8_x [SVN r33101] --- include/boost/typeof/typeof.hpp | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/include/boost/typeof/typeof.hpp b/include/boost/typeof/typeof.hpp index 5cce6e1..7b8b932 100755 --- a/include/boost/typeof/typeof.hpp +++ b/include/boost/typeof/typeof.hpp @@ -58,17 +58,24 @@ # endif #elif defined(__MWERKS__) -# ifndef BOOST_TYPEOF_EMULATION -# ifndef BOOST_TYPEOF_NATIVE -# define BOOST_TYPEOF_NATIVE -# endif -# define BOOST_TYPEOF_KEYWORD __typeof__ -# endif # if(__MWERKS__ <= 0x3003) // 8.x -# define BOOST_TYPEOF_NO_FUNCTION_TYPES +# ifndef BOOST_TYPEOF_EMULATION +# ifndef BOOST_TYPEOF_NATIVE +# define BOOST_TYPEOF_NATIVE +# endif +# define BOOST_TYPEOF_KEYWORD __typeof__ +# else +# error typeof emulation is not supported +# endif +# else // 9.x +# ifndef BOOST_TYPEOF_EMULATION +# ifndef BOOST_TYPEOF_NATIVE +# define BOOST_TYPEOF_NATIVE +# endif +# define BOOST_TYPEOF_KEYWORD __typeof__ +# endif # endif - #elif defined(_MSC_VER) # if (_MSC_VER <= 1300) // 6.5, 7.0 # ifndef BOOST_TYPEOF_EMULATION