1 // ------------------------------------------------------------------------------
2 // format_config.hpp : configuration for the format library
3 // The contents of this file should be integrated into the boost config system.
4 // ------------------------------------------------------------------------------
6 #ifndef BOOST_FORMAT_CONFIG_HPP
7 #define BOOST_FORMAT_CONFIG_HPP
9 #include "boost/config.hpp"
11 // *** This should go to "boost/config/stdlib/stlport.hpp".
13 // If the streams are not native and there are problems with using templates
14 // accross namespaces, we define some macros to enable a workaround for this.
17 #if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
19 # define BOOST_IO_NEEDS_USING_DECLARATION
23 #if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_OWN_NAMESPACE) && defined(BOOST_NO_USING_TEMPLATE)
25 # define BOOST_IO_NEEDS_USING_DECLARATION
28 // *** This should go to "boost/config/suffix.hpp".
31 # define BOOST_IO_STD std::
34 // **** Workaround for io streams, stlport and msvc.
35 #ifdef BOOST_IO_NEEDS_USING_DECLARATION
37 using std::char_traits;
38 using std::basic_ostream;
39 using std::basic_ostringstream;
41 using std::basic_ostream;
44 using std::basic_ostream;
45 using std::basic_ostringstream;
51 // ------------------------------------------------------------------------------
53 #endif // BOOST_FORMAT_CONFIG_HPP