44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
// ----------------------------------------------------------------------------
|
|
// format_fwd.hpp : forward declarations
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Copyright Samuel Krempp 2003. Use, modification, and distribution are
|
|
// subject to the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
// See http://www.boost.org/libs/format for library home page
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
#ifndef ACTIV_BOOST_FORMAT_FWD_HPP
|
|
#define ACTIV_BOOST_FORMAT_FWD_HPP
|
|
|
|
#include <string>
|
|
#include <iosfwd>
|
|
|
|
#include <ActivBoost/format/detail/compat_workarounds.hpp>
|
|
|
|
namespace Boost {
|
|
|
|
template <typename StringT>
|
|
class basic_format;
|
|
|
|
typedef basic_format<std::string> format;
|
|
|
|
#if !defined(ACTIV_BOOST_NO_STD_WSTRING) && !defined(ACTIV_BOOST_NO_STD_WSTREAMBUF) \
|
|
&& !defined(ACTIV_BOOST_FORMAT_IGNORE_STRINGSTREAM)
|
|
typedef basic_format<wchar_t > wformat;
|
|
#endif
|
|
|
|
namespace io {
|
|
enum format_error_bits { bad_format_string_bit = 1,
|
|
too_few_args_bit = 2, too_many_args_bit = 4,
|
|
out_of_range_bit = 8,
|
|
all_error_bits = 255, no_error_bits=0 };
|
|
|
|
} // namespace io
|
|
|
|
} // namespace Boost
|
|
|
|
#endif // ACTIV_BOOST_FORMAT_FWD_HPP
|