Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62223 - in sandbox/python_extensions: boost/python/const_aware libs/python/src libs/python/test
From: talljimbo_at_[hidden]
Date: 2010-05-25 20:39:11


Author: jbosch
Date: 2010-05-25 20:39:10 EDT (Tue, 25 May 2010)
New Revision: 62223
URL: http://svn.boost.org/trac/boost/changeset/62223

Log:
python extensions - removed support for def_visitor in const_aware::exposer (wasn't working anyway, and can't without changes to Boost.Python itself).
Properties modified:
   sandbox/python_extensions/libs/python/src/ (props changed)
   sandbox/python_extensions/libs/python/test/ (props changed)
Text files modified:
   sandbox/python_extensions/boost/python/const_aware/exposer.hpp | 12 +++---------
   1 files changed, 3 insertions(+), 9 deletions(-)

Modified: sandbox/python_extensions/boost/python/const_aware/exposer.hpp
==============================================================================
--- sandbox/python_extensions/boost/python/const_aware/exposer.hpp (original)
+++ sandbox/python_extensions/boost/python/const_aware/exposer.hpp 2010-05-25 20:39:10 EDT (Tue, 25 May 2010)
@@ -51,6 +51,8 @@
 
 public: // miscellaneous
 
+ proxy_class & const_proxy() { return m_proxy; }
+
     self& enable_shared_ptr() {
         register_ptr_to_python< boost::shared_ptr<wrapped> >();
         const_aware::const_shared_ptr_to_python<wrapped>();
@@ -61,14 +63,6 @@
 
 public: // member functions
 
- // Generic visitation
- template <class Derived>
- self& def(def_visitor<Derived> const& visitor)
- {
- visitor.visit(m_class);
- return *this;
- }
-
     // Wrap a member function or a non-member function which can take
     // a T, T cv&, or T cv* as its first parameter, a callable
     // python object, or a generic visitor.
@@ -187,7 +181,7 @@
       , def_visitor<Visitor> const* v
     )
     {
- v->visit(m_class, name, helper);
+ BOOST_STATIC_ASSERT(sizeof(LeafVisitor) < 0); // No support for visitors (yet).
     }
 
     template <class T, class Fn, class Helper>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk