mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Using std::enable_if
instead of std::enable_if_t
for C++ support.
This commit is contained in:
parent
e8aa81bd9a
commit
85052afe65
@ -120,7 +120,7 @@ struct as_return_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct as_return_type<T, typename std::enable_if_t<is_descr<decltype(T::return_name)>::value>> {
|
struct as_return_type<T, typename std::enable_if<is_descr<decltype(T::return_name)>::value>::type> {
|
||||||
static constexpr auto name = T::return_name;
|
static constexpr auto name = T::return_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user