1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/python/self.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,33 @@
1.4 +// Copyright David Abrahams 2002.
1.5 +// Distributed under the Boost Software License, Version 1.0. (See
1.6 +// accompanying file LICENSE_1_0.txt or copy at
1.7 +// http://www.boost.org/LICENSE_1_0.txt)
1.8 +#ifndef SELF_DWA2002531_HPP
1.9 +# define SELF_DWA2002531_HPP
1.10 +
1.11 +# include <boost/python/detail/prefix.hpp>
1.12 +
1.13 +namespace boost { namespace python {
1.14 +
1.15 +#define BOOST_PYTHON_SELF_IS_CLASS
1.16 +
1.17 +// Sink self_t into its own namespace so that we have a safe place to
1.18 +// put the completely general operator templates which operate on
1.19 +// it. It is possible to avoid this, but it turns out to be much more
1.20 +// complicated and finally GCC 2.95.2 chokes on it.
1.21 +namespace self_ns
1.22 +{
1.23 +# ifndef BOOST_PYTHON_SELF_IS_CLASS
1.24 + enum self_t { self };
1.25 +# else
1.26 + struct self_t {};
1.27 + extern BOOST_PYTHON_DECL self_t self;
1.28 +# endif
1.29 +}
1.30 +
1.31 +using self_ns::self_t;
1.32 +using self_ns::self;
1.33 +
1.34 +}} // namespace boost::python
1.35 +
1.36 +#endif // SELF_DWA2002531_HPP