source: NonGTP/Boost/boost/format/format_fwd.hpp @ 857

Revision 857, 1.7 KB checked in by igarcia, 19 years ago (diff)
Line 
1// ----------------------------------------------------------------------------
2//  format_fwd.hpp :  forward declarations
3// ----------------------------------------------------------------------------
4
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)
8
9//  See http://www.boost.org/libs/format for library home page
10
11// ----------------------------------------------------------------------------
12
13#ifndef BOOST_FORMAT_FWD_HPP
14#define BOOST_FORMAT_FWD_HPP
15
16#include <string>
17#include <iosfwd>
18
19#include <boost/format/detail/compat_workarounds.hpp>
20
21namespace boost {
22
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;
31
32    typedef basic_format<char >     format;
33
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
38
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 };
44                 
45    } // namespace io
46
47} // namespace boost
48
49#endif // BOOST_FORMAT_FWD_HPP
Note: See TracBrowser for help on using the repository browser.