macros_default.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // -*- C++ -*-
  2. // Boost general library 'format' ---------------------------
  3. // See http://www.boost.org for updates, documentation, and revision history.
  4. // (C) Samuel Krempp 2001
  5. // krempp@crans.ens-cachan.fr
  6. // Permission to copy, use, modify, sell and
  7. // distribute this software is granted provided this copyright notice appears
  8. // in all copies. This software is provided "as is" without express or implied
  9. // warranty, and with no claim as to its suitability for any purpose.
  10. // ideas taken from Rüdiger Loos's format class
  11. // and Karl Nelson's ofstream (also took its parsing code as basis for printf parsing)
  12. // ------------------------------------------------------------------------------
  13. // macros_default.hpp : configuration for the format library
  14. // provides default values for the stl workaround macros
  15. // ------------------------------------------------------------------------------
  16. #ifndef BOOST_FORMAT_MACROS_DEFAULT_HPP
  17. #define BOOST_FORMAT_MACROS_DEFAULT_HPP
  18. // *** This should go to "boost/config/suffix.hpp".
  19. #ifndef BOOST_IO_STD
  20. # define BOOST_IO_STD std::
  21. #endif
  22. // **** Workaround for io streams, stlport and msvc.
  23. #ifdef BOOST_IO_NEEDS_USING_DECLARATION
  24. namespace boost {
  25. using std::char_traits;
  26. using std::basic_ostream;
  27. using std::basic_ostringstream;
  28. namespace io {
  29. using std::basic_ostream;
  30. namespace detail {
  31. using std::basic_ios;
  32. using std::basic_ostream;
  33. using std::basic_ostringstream;
  34. }
  35. }
  36. }
  37. #endif
  38. // ------------------------------------------------------------------------------
  39. #endif // BOOST_FORMAT_MACROS_DEFAULT_HPP