+2020-03-27 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/std/type_traits (__is_array_convertible): Move definition
+ to immediately after is_convertible.
+
2020-03-26 Jonathan Wakely <jwakely@redhat.com>
* include/std/chrono (chrono::days, chrono::weeks, chrono::years)
: public __is_convertible_helper<_From, _To>::type
{ };
+ // helper trait for unique_ptr<T[]>, shared_ptr<T[]>, and span<T, N>
+ template<typename _ToElementType, typename _FromElementType>
+ using __is_array_convertible
+ = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>;
+
template<typename _From, typename _To,
bool = __or_<is_void<_From>, is_function<_To>,
is_array<_To>>::value>
};
#pragma GCC diagnostic pop
- // helper trait for unique_ptr<T[]>, shared_ptr<T[]>, and span<T, N>
- template<typename _ToElementType, typename _FromElementType>
- using __is_array_convertible
- = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>;
-
// is_nothrow_convertible for C++11
template<typename _From, typename _To>
struct __is_nothrow_convertible