Skip to content

Commit c3cab66

Browse files
committed
Fix compilation with AppleClang < v7.0.0
1 parent 1eb76d3 commit c3cab66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cppwrapper/include/python_support.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object return_copy(Data (Class::*pmf)() const) {
2323
return_value_policy<return_by_value>());
2424
}
2525

26-
template<class Class, class Data, class = cpp14::enable_if_t<!std::is_function<Data>::value>>
26+
template<class Class, class Data>
2727
object return_copy(Data Class::* d) {
2828
return make_getter(d, return_value_policy<return_by_value>());
2929
}
@@ -71,7 +71,7 @@ object return_arrayref(Data (Class::*pmf)() const) {
7171
);
7272
}
7373

74-
template<class Class, class Data, class = cpp14::enable_if_t<!std::is_function<Data>::value>>
74+
template<class Class, class Data>
7575
object return_arrayref(Data Class::* d) {
7676
return make_function(
7777
[d](Class& c) { return cpb::arrayref(c.*d); },
@@ -97,7 +97,7 @@ object extended(Data (Class::*pmf)() const, char const* class_name,
9797
});
9898
}
9999

100-
template<class Class, class Data, class = cpp14::enable_if_t<!std::is_function<Data>::value>>
100+
template<class Class, class Data>
101101
object extended(Data Class::* d, char const* class_name, char const* module_name = "pybinding") {
102102
return make_function([=](Class const& c) {
103103
return detail::with_changed_class(c.*d, class_name, module_name);

0 commit comments

Comments
 (0)