mirror of
https://github.com/boostorg/core.git
synced 2026-04-29 10:13:22 +02:00
@@ -23,9 +23,17 @@ class span;
|
||||
|
||||
namespace detail {
|
||||
|
||||
template<class U, class T, class = void>
|
||||
struct span_convertible
|
||||
{
|
||||
static constexpr bool value = false;
|
||||
};
|
||||
|
||||
template<class U, class T>
|
||||
struct span_convertible {
|
||||
static constexpr bool value = std::is_convertible<U(*)[], T(*)[]>::value;
|
||||
struct span_convertible<U, T, typename std::enable_if<
|
||||
std::is_convertible<U(*)[], T(*)[]>::value>::type>
|
||||
{
|
||||
static constexpr bool value = true;
|
||||
};
|
||||
|
||||
template<std::size_t E, std::size_t N>
|
||||
|
||||
Reference in New Issue
Block a user