From d452787dd149451f8c053217b17b476a433fd943 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Wed, 30 Oct 2002 01:41:56 +0000 Subject: [PATCH] GCC 3.2 typeinfo fix [SVN r16017] --- test/for_each.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/for_each.cpp b/test/for_each.cpp index 60b1f7d..16a8839 100644 --- a/test/for_each.cpp +++ b/test/for_each.cpp @@ -34,7 +34,11 @@ struct printer printer(std::ostream& s) : f_stream(&s) {} template< typename U > void operator()(mpl::identity) { +#if defined(__GNUC__) && (__GNUC__ >= 3 && !defined(BOOST_STRICT_CONFIG)) + *f_stream << reinterpret_cast(typeid(U).name()) << '\n'; +#else *f_stream << typeid(U).name() << '\n'; +#endif } private: