Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/python/self.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright David Abrahams 2002.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef SELF_DWA2002531_HPP
0006 # define SELF_DWA2002531_HPP
0007 
0008 # include <boost/python/detail/prefix.hpp>
0009 
0010 namespace boost { namespace python {
0011 
0012 #define BOOST_PYTHON_SELF_IS_CLASS
0013 
0014 // Sink self_t into its own namespace so that we have a safe place to
0015 // put the completely general operator templates which operate on
0016 // it. It is possible to avoid this, but it turns out to be much more
0017 // complicated and finally GCC 2.95.2 chokes on it.
0018 namespace self_ns
0019 {
0020 # ifndef BOOST_PYTHON_SELF_IS_CLASS
0021   enum self_t { self };
0022 # else 
0023   struct self_t {};
0024   extern BOOST_PYTHON_DECL self_t self;
0025 # endif
0026 }
0027 
0028 using self_ns::self_t;
0029 using self_ns::self;
0030 
0031 }} // namespace boost::python
0032 
0033 #endif // SELF_DWA2002531_HPP