From 146863654337699ddea64561ba95f104283c88c9 Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Mon, 30 Aug 2010 19:29:02 +0000 Subject: [PATCH] #4593: Type_of does not use BOOST_TYPEOF_EMULATION for VC10 and \Za - fixed [SVN r65135] --- include/boost/typeof/typeof.hpp | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/include/boost/typeof/typeof.hpp b/include/boost/typeof/typeof.hpp index a9d2fea..99033f9 100644 --- a/include/boost/typeof/typeof.hpp +++ b/include/boost/typeof/typeof.hpp @@ -110,24 +110,21 @@ # else # error typeof emulation is not supported # endif -# elif (_MSC_VER >= 1310) // 7.1, 8.0 +# elif (_MSC_VER >= 1310) // 7.1 -> # ifndef BOOST_TYPEOF_EMULATION # ifndef BOOST_TYPEOF_NATIVE -# define BOOST_TYPEOF_NATIVE +# ifndef _MSC_EXTENSIONS +# define BOOST_TYPEOF_EMULATION +# else +# define BOOST_TYPEOF_NATIVE +# endif # endif -# include -# define MSVC_TYPEOF_HACK # endif -/*# else // 8.0 -# ifndef BOOST_TYPEOF_NATIVE -# ifndef BOOST_TYPEOF_EMULATION -# define BOOST_TYPEOF_EMULATION -# endif -# else -# error native typeof is not supported -# endif*/ -# endif - +# ifdef BOOST_TYPEOF_NATIVE +# include +# define MSVC_TYPEOF_HACK +# endif +# endif #elif defined(__HP_aCC) # ifndef BOOST_TYPEOF_NATIVE # ifndef BOOST_TYPEOF_EMULATION