1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/dynamic_bitset/config.hpp Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,81 @@
1.4 +// --------------------------------------------------
1.5 +//
1.6 +// (C) Copyright Chuck Allison and Jeremy Siek 2001 - 2002.
1.7 +// (C) Copyright Gennaro Prota 2003 - 2004.
1.8 +//
1.9 +// Distributed under the Boost Software License, Version 1.0.
1.10 +// (See accompanying file LICENSE_1_0.txt or copy at
1.11 +// http://www.boost.org/LICENSE_1_0.txt)
1.12 +//
1.13 +// -----------------------------------------------------------
1.14 +
1.15 +// See http://www.boost.org/libs/dynamic_bitset for documentation.
1.16 +
1.17 +
1.18 +#ifndef BOOST_DYNAMIC_BITSET_CONFIG_HPP_GP_20040424
1.19 +#define BOOST_DYNAMIC_BITSET_CONFIG_HPP_GP_20040424
1.20 +
1.21 +#include "boost/config.hpp"
1.22 +#include "boost/detail/workaround.hpp"
1.23 +
1.24 +// support for pre 3.0 libstdc++ - thanks Phil Edwards!
1.25 +#if defined (__STL_CONFIG_H) && !defined (__STL_USE_NEW_IOSTREAMS)
1.26 +# define BOOST_OLD_IOSTREAMS
1.27 +#endif
1.28 +
1.29 +// this should be in the config system some day
1.30 +// see http://lists.boost.org/MailArchives/boost/msg62291.php
1.31 +#define BOOST_DYNAMIC_BITSET_GNUC_VERSION ( __GNUC__ * 100 * 100 \
1.32 + + __GNUC_MINOR__ * 100)
1.33 +
1.34 +// workaround for gcc bug c++/8419 - gps
1.35 +
1.36 +namespace boost { namespace detail {
1.37 + template <typename T> T make_non_const(T t) { return t; }
1.38 +}}
1.39 +
1.40 +#if defined(__GNUC__) && BOOST_WORKAROUND(BOOST_DYNAMIC_BITSET_GNUC_VERSION, \
1.41 + BOOST_TESTED_AT(30300))
1.42 +# define BOOST_DYNAMIC_BITSET_WRAP_CONSTANT(expr) \
1.43 + (boost::detail::make_non_const(expr))
1.44 +#else
1.45 +# define BOOST_DYNAMIC_BITSET_WRAP_CONSTANT(expr) (expr)
1.46 +#endif
1.47 +
1.48 +//
1.49 +#if (defined __BORLANDC__ && BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))) \
1.50 + || (defined BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
1.51 +#define BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS
1.52 +#endif
1.53 +
1.54 +// if we can't use friends then private members are exposed
1.55 +//
1.56 +#if defined(BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS)
1.57 +#define BOOST_DYNAMIC_BITSET_PRIVATE public
1.58 +#else
1.59 +#define BOOST_DYNAMIC_BITSET_PRIVATE private
1.60 +#endif
1.61 +
1.62 +// A couple of macros to cope with libraries without locale
1.63 +// support. The first macro must be used to declare a reference
1.64 +// to a ctype facet. The second one to widen a char by using
1.65 +// that ctype object. If facets and locales aren't available
1.66 +// the first macro is a no-op and the second one just expands
1.67 +// to its parameter c.
1.68 +//
1.69 +#if defined (BOOST_USE_FACET)
1.70 +
1.71 +#define BOOST_DYNAMIC_BITSET_CTYPE_FACET(ch, name, loc) \
1.72 + const std::ctype<ch> & name = \
1.73 + BOOST_USE_FACET(std::ctype<ch>, loc) /**/
1.74 +
1.75 +#define BOOST_DYNAMIC_BITSET_WIDEN_CHAR(fac, c) \
1.76 + (fac.widen(c))
1.77 +#else
1.78 +
1.79 +#define BOOST_DYNAMIC_BITSET_CTYPE_FACET(ch, name, loc) /**/
1.80 +#define BOOST_DYNAMIC_BITSET_WIDEN_CHAR(fac, c) c
1.81 +
1.82 +#endif
1.83 +
1.84 +#endif // include guard