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