From bd2418b32d83c5b170823f7d7aba9d659b8ff215 Mon Sep 17 00:00:00 2001 From: Arkadiy Vertleyb Date: Thu, 26 Jan 2006 02:52:05 +0000 Subject: [PATCH] cw-8_x doesn't have function types [SVN r32415] --- include/boost/typeof/register_functions_iterate.hpp | 4 ++++ include/boost/typeof/typeof.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/boost/typeof/register_functions_iterate.hpp b/include/boost/typeof/register_functions_iterate.hpp index 410be18..9aaea51 100755 --- a/include/boost/typeof/register_functions_iterate.hpp +++ b/include/boost/typeof/register_functions_iterate.hpp @@ -26,6 +26,8 @@ namespace typedef BOOST_PP_CAT(iter, BOOST_PP_INC(n)) iter; }; +#ifndef BOOST_TYPEOF_NO_FUNCTION_TYPES + // function references template @@ -62,6 +64,8 @@ namespace typedef BOOST_PP_CAT(iter, BOOST_PP_INC(n)) iter; }; +#endif//BOOST_TYPEOF_NO_FUNCTION_TYPES + // member functions #define BOOST_TYPEOF_qualifier diff --git a/include/boost/typeof/typeof.hpp b/include/boost/typeof/typeof.hpp index b21ebf0..ce03cd8 100755 --- a/include/boost/typeof/typeof.hpp +++ b/include/boost/typeof/typeof.hpp @@ -64,6 +64,10 @@ # endif # define BOOST_TYPEOF_KEYWORD __typeof__ # endif +# if(__MWERKS__ <= 0x3003) // 8.x +# define BOOST_TYPEOF_NO_FUNCTION_TYPES +# endif + #elif defined(_MSC_VER) # if (_MSC_VER <= 1300) // 6.5, 7.0