File indexing completed on 2025-01-18 09:30:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_DYNAMIC_BITSET_CONFIG_HPP_GP_20040424
0013 #define BOOST_DYNAMIC_BITSET_CONFIG_HPP_GP_20040424
0014
0015 #include "boost/config.hpp"
0016 #include "boost/detail/workaround.hpp"
0017
0018
0019 #if defined (__STL_CONFIG_H) && !defined (__STL_USE_NEW_IOSTREAMS)
0020 # define BOOST_OLD_IOSTREAMS
0021 #endif
0022
0023
0024
0025 namespace boost { namespace detail {
0026 template <typename T> T make_non_const(T t) { return t; }
0027 }}
0028
0029 #if defined(__GNUC__)
0030 # define BOOST_DYNAMIC_BITSET_WRAP_CONSTANT(expr) \
0031 (boost::detail::make_non_const(expr))
0032 #else
0033 # define BOOST_DYNAMIC_BITSET_WRAP_CONSTANT(expr) (expr)
0034 #endif
0035
0036
0037 #if (defined BOOST_BORLANDC && BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))) \
0038 || (defined BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
0039 #define BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS
0040 #endif
0041
0042
0043
0044 #if defined(BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS)
0045 #define BOOST_DYNAMIC_BITSET_PRIVATE public
0046 #else
0047 #define BOOST_DYNAMIC_BITSET_PRIVATE private
0048 #endif
0049
0050
0051
0052
0053
0054
0055
0056
0057 #if defined (BOOST_USE_FACET)
0058
0059 #define BOOST_DYNAMIC_BITSET_CTYPE_FACET(ch, name, loc) \
0060 const std::ctype<ch> & name = \
0061 BOOST_USE_FACET(std::ctype<ch>, loc)
0062
0063 #define BOOST_DYNAMIC_BITSET_WIDEN_CHAR(fac, c) \
0064 (fac.widen(c))
0065 #else
0066
0067 #define BOOST_DYNAMIC_BITSET_CTYPE_FACET(ch, name, loc)
0068 #define BOOST_DYNAMIC_BITSET_WIDEN_CHAR(fac, c) c
0069
0070 #endif
0071
0072 #endif