mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 05:37:46 +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>
|
||||
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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user