mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 17:52:17 +00:00
Fixed to workaround init<...> only for intel compilers
[SVN r15157]
This commit is contained in:
@@ -126,18 +126,17 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext)
|
||||
.def("foobar", foo, foo_stubs())
|
||||
.def("barfoo", (object(*)(int, char, std::string, double))0, bar_stubs())
|
||||
;
|
||||
|
||||
|
||||
class_<X>("X")
|
||||
|
||||
# if (!defined(__EDG_VERSION__) || __EDG_VERSION__ > 245) \
|
||||
&& (!defined(BOOST_INTEL_CXX_VERSION) || BOOST_INTEL_CXX_VERSION > 600)
|
||||
# if (!defined(BOOST_INTEL_CXX_VERSION) || BOOST_INTEL_CXX_VERSION > 600)
|
||||
.def(init<int, optional<char, std::string, double> >())
|
||||
#else
|
||||
# else
|
||||
.def_init(args<int>())
|
||||
.def_init(args<int, char>())
|
||||
.def_init(args<int, char, std::string>())
|
||||
.def_init(args<int, char, std::string, double>())
|
||||
#endif
|
||||
# endif
|
||||
.def("get_state", &X::get_state)
|
||||
.def("bar", &X::bar, X_bar_stubs())
|
||||
.def("foo", (object(X::*)(std::string, bool) const)0, X_foo_2_stubs())
|
||||
|
||||
Reference in New Issue
Block a user