fix doc example typo
[boost.git] / boost / format / format_fwd.hpp
blobbe3228af3c74fcfc13228072da20821a51832b5e
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
16 #include <string>
17 #include <iosfwd>
19 #include <boost/format/detail/compat_workarounds.hpp>
21 namespace boost {
23 template <class Ch,
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> >
27 #else
28 class Tr = std::string_char_traits<Ch>, class Alloc = std::alloc >
29 #endif
30 class basic_format;
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;
37 #endif
39 namespace io {
40 enum format_error_bits { bad_format_string_bit = 1,
41 too_few_args_bit = 2, too_many_args_bit = 4,
42 out_of_range_bit = 8,
43 all_error_bits = 255, no_error_bits=0 };
45 } // namespace io
47 } // namespace boost
49 #endif // BOOST_FORMAT_FWD_HPP