diff --git a/include/boost/type_index/stl_type_index.ipp b/include/boost/type_index/stl_type_index.ipp index 9ab5842..9c81d8f 100644 --- a/include/boost/type_index/stl_type_index.ipp +++ b/include/boost/type_index/stl_type_index.ipp @@ -34,26 +34,30 @@ #endif #include - -#ifdef __GNUC__ -#include -#endif - - -#include -#include +#include // std::strcmp, std::strlen #include -#include #include #include #include #include #include #include -#include #include +#ifdef __GNUC__ +#include +#endif + +#if !defined(BOOST_MSVC) +# include +# include +#endif + +#if (defined(__EDG_VERSION__) && __EDG_VERSION__ < 245) \ + || (defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 744) +# include +#endif namespace boost { namespace typeind { namespace detail { @@ -157,7 +161,6 @@ inline std::string type_index_base::pretty_name() const { } std::string::size_type end = ret.rfind(">"); - BOOST_ASSERT(end != std::string::npos); while (ret[end - 1] == ' ') { -- end; }