mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
Fix: Template syntax error when using 'span' with a container type.
This commit is contained in:
parent
0c90326ada
commit
39e8783f4b
@ -26,5 +26,6 @@ add_files(
|
|||||||
smallmatrix_type.hpp
|
smallmatrix_type.hpp
|
||||||
smallstack_type.hpp
|
smallstack_type.hpp
|
||||||
smallvec_type.hpp
|
smallvec_type.hpp
|
||||||
|
span_type.hpp
|
||||||
string_compare_type.hpp
|
string_compare_type.hpp
|
||||||
)
|
)
|
||||||
|
@ -31,8 +31,8 @@ struct is_compatible_element
|
|||||||
<
|
<
|
||||||
C, E, std::void_t<
|
C, E, std::void_t<
|
||||||
decltype(std::data(std::declval<C>())),
|
decltype(std::data(std::declval<C>())),
|
||||||
typename std::remove_pointer<decltype(std::data( std::declval<C&>()))>::type(*)[]>
|
typename std::remove_pointer_t<decltype(std::data( std::declval<C&>()))>(*)[]>
|
||||||
> : std::is_convertible<typename std::remove_pointer<decltype(std::data(std::declval<C&>()))>::type(*)[], E(*)[]>{};
|
> : std::is_convertible<typename std::remove_pointer_t<decltype(std::data(std::declval<C&>()))>(*)[], E(*)[]>{};
|
||||||
|
|
||||||
/* Template to check if a container is compatible. gsl-lite also includes is_array and is_std_array, but as we don't use them, they are omitted. */
|
/* Template to check if a container is compatible. gsl-lite also includes is_array and is_std_array, but as we don't use them, they are omitted. */
|
||||||
template <class C, class E>
|
template <class C, class E>
|
||||||
|
Loading…
Reference in New Issue
Block a user