4545# if BOOST_WORKAROUND(__MWERKS__, <= 0x3004) \
4646 /* pro9 reintroduced the bug */ \
4747 || (BOOST_WORKAROUND(__MWERKS__, > 0x3100 ) \
48- && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3201 ))) \
49- || BOOST_WORKAROUND(__GNUC__, < 3 )
48+ && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3201 )))
5049
5150# define BOOST_PYTHON_NO_MEMBER_POINTER_ORDERING 1
5251
@@ -302,7 +301,6 @@ class class_ : public objects::class_base
302301 }
303302
304303 // Property creation
305- # if !BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
306304 template <class Get >
307305 self& add_property (char const * name, Get fget, char const * docstr = 0 )
308306 {
@@ -317,47 +315,6 @@ class class_ : public objects::class_base
317315 name, this ->make_getter (fget), this ->make_setter (fset), docstr);
318316 return *this ;
319317 }
320- # else
321- private:
322- template <class Get >
323- self& add_property_impl (char const * name, Get fget, char const * docstr, int )
324- {
325- base::add_property (name, this ->make_getter (fget), docstr);
326- return *this ;
327- }
328-
329- template <class Get , class Set >
330- self& add_property_impl (char const * name, Get fget, Set fset, ...)
331- {
332- base::add_property (
333- name, this ->make_getter (fget), this ->make_setter (fset), 0 );
334- return *this ;
335- }
336-
337- public:
338- template <class Get >
339- self& add_property (char const * name, Get fget)
340- {
341- base::add_property (name, this ->make_getter (fget), 0 );
342- return *this ;
343- }
344-
345- template <class Get , class DocStrOrSet >
346- self& add_property (char const * name, Get fget, DocStrOrSet docstr_or_set)
347- {
348- this ->add_property_impl (name, this ->make_getter (fget), docstr_or_set, 0 );
349- return *this ;
350- }
351-
352- template <class Get , class Set >
353- self&
354- add_property (char const * name, Get fget, Set fset, char const * docstr)
355- {
356- base::add_property (
357- name, this ->make_getter (fget), this ->make_setter (fset), docstr);
358- return *this ;
359- }
360- # endif
361318
362319 template <class Get >
363320 self& add_static_property (char const * name, Get fget)
0 commit comments