Skip to content

Commit ac02c76

Browse files
committed
Fixed to workaround init<...> only for intel compilers
[SVN r15157]
1 parent 7407a6b commit ac02c76

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

test/defaults.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,17 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext)
126126
.def("foobar", foo, foo_stubs())
127127
.def("barfoo", (object(*)(int, char, std::string, double))0, bar_stubs())
128128
;
129-
129+
130130
class_<X>("X")
131131

132-
# if (!defined(__EDG_VERSION__) || __EDG_VERSION__ > 245) \
133-
&& (!defined(BOOST_INTEL_CXX_VERSION) || BOOST_INTEL_CXX_VERSION > 600)
132+
# if (!defined(BOOST_INTEL_CXX_VERSION) || BOOST_INTEL_CXX_VERSION > 600)
134133
.def(init<int, optional<char, std::string, double> >())
135-
#else
134+
# else
136135
.def_init(args<int>())
137136
.def_init(args<int, char>())
138137
.def_init(args<int, char, std::string>())
139138
.def_init(args<int, char, std::string, double>())
140-
#endif
139+
# endif
141140
.def("get_state", &X::get_state)
142141
.def("bar", &X::bar, X_bar_stubs())
143142
.def("foo", (object(X::*)(std::string, bool) const)0, X_foo_2_stubs())

0 commit comments

Comments
 (0)