mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +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
|
||||
smallstack_type.hpp
|
||||
smallvec_type.hpp
|
||||
span_type.hpp
|
||||
string_compare_type.hpp
|
||||
)
|
||||
|
@ -31,8 +31,8 @@ struct is_compatible_element
|
||||
<
|
||||
C, E, std::void_t<
|
||||
decltype(std::data(std::declval<C>())),
|
||||
typename std::remove_pointer<decltype(std::data( std::declval<C&>()))>::type(*)[]>
|
||||
> : std::is_convertible<typename std::remove_pointer<decltype(std::data(std::declval<C&>()))>::type(*)[], E(*)[]>{};
|
||||
typename std::remove_pointer_t<decltype(std::data( std::declval<C&>()))>(*)[]>
|
||||
> : 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 <class C, class E>
|
||||
|
Loading…
Reference in New Issue
Block a user