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