format_fwd.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. class Tr = BOOST_IO_STD char_traits<Ch>, class Alloc = std::allocator<Ch> >
  17. class basic_format;
  18. typedef basic_format<char > format;
  19. #if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_STD_WSTREAMBUF)
  20. typedef basic_format<wchar_t > wformat;
  21. #endif
  22. namespace io {
  23. enum format_error_bits { bad_format_string_bit = 1,
  24. too_few_args_bit = 2, too_many_args_bit = 4,
  25. out_of_range_bit = 8,
  26. all_error_bits = 255, no_error_bits=0 };
  27. } // namespace io
  28. } // namespace boost
  29. #endif // BOOST_FORMAT_FWD_HPP