/src/contrib/boost/format/format_fwd.hpp

http://pythonocc.googlecode.com/ · C++ Header · 49 lines · 26 code · 14 blank · 9 comment · 4 complexity · 71dc5c94e4c255013e3c503172fba06a MD5 · raw file

  1. // ----------------------------------------------------------------------------
  2. // format_fwd.hpp : forward declarations
  3. // ----------------------------------------------------------------------------
  4. // Copyright Samuel Krempp 2003. Use, modification, and distribution are
  5. // subject to the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // See http://www.boost.org/libs/format for library home page
  8. // ----------------------------------------------------------------------------
  9. #ifndef BOOST_FORMAT_FWD_HPP
  10. #define BOOST_FORMAT_FWD_HPP
  11. #include <string>
  12. #include <iosfwd>
  13. #include <boost/format/detail/compat_workarounds.hpp>
  14. namespace boost {
  15. template <class Ch,
  16. #if !( BOOST_WORKAROUND(__GNUC__, <3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) )
  17. // gcc-2.95's native stdlid needs special treatment
  18. class Tr = BOOST_IO_STD char_traits<Ch>, class Alloc = std::allocator<Ch> >
  19. #else
  20. class Tr = std::string_char_traits<Ch>, class Alloc = std::alloc >
  21. #endif
  22. class basic_format;
  23. typedef basic_format<char > format;
  24. #if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_STD_WSTREAMBUF) \
  25. && !defined(BOOST_FORMAT_IGNORE_STRINGSTREAM)
  26. typedef basic_format<wchar_t > wformat;
  27. #endif
  28. namespace io {
  29. enum format_error_bits { bad_format_string_bit = 1,
  30. too_few_args_bit = 2, too_many_args_bit = 4,
  31. out_of_range_bit = 8,
  32. all_error_bits = 255, no_error_bits=0 };
  33. } // namespace io
  34. } // namespace boost
  35. #endif // BOOST_FORMAT_FWD_HPP