From f49ba073cac734d699e08961f92d30e8136697f2 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 13 Oct 2001 10:20:42 +0000 Subject: [PATCH] Added fixes for compilers with broken using declaration support that are not using the SGI streams classes. [SVN r11382] --- include/boost/config/stdlib/stlport.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/boost/config/stdlib/stlport.hpp b/include/boost/config/stdlib/stlport.hpp index 48b3b718..6df55b49 100644 --- a/include/boost/config/stdlib/stlport.hpp +++ b/include/boost/config/stdlib/stlport.hpp @@ -45,6 +45,17 @@ # define BOOST_NO_STRINGSTREAM #endif +// +// If the streams are not native, and we have a "using ::x" compiler bug +// then the io stream facets are not available in namespace std:: +// +#if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) +# define BOOST_NO_STD_LOCALE +#endif +#if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) +# define BOOST_NO_STD_LOCALE +#endif + // // Without member template support enabled, their are no template // iterate constructors, and no std::allocator: