From 1e029d60e9ff27aa4990e66c00ba1f698e3973cc Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Wed, 5 Jan 2005 19:14:43 +0000 Subject: [PATCH] Workaround for bug in VC7.0 [SVN r2433] --- test/main.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/main.cpp b/test/main.cpp index 3e0990b..dcf2d35 100755 --- a/test/main.cpp +++ b/test/main.cpp @@ -36,6 +36,26 @@ using namespace std; using namespace boost; +#if BOOST_WORKAROUND(BOOST_MSVC,<=1300) + +template +mpl::vector1 typeof_test_helper(type const&); + +template +struct typeof_test +{ + static type dummy; + enum {value = boost::is_same< + BOOST_TYPEOF_TPL(typeof_test_helper(dummy)), + mpl::vector1 + >::value + }; +}; + +template +type typeof_test::dummy; + +#else //!BOOST_WORKAROUND(BOOST_MSVC,<=1300) template mpl::vector1 typeof_test_helper(); @@ -49,6 +69,8 @@ struct typeof_test }; }; +#endif //BOOST_WORKAROUND(BOOST_MSVC,<=1300) + #pragma message("started") struct x