mirror of git://gcc.gnu.org/git/gcc.git
libstdc++: Make <mdspan> compatible with clang.
The submdspan feature broke compatibility with clang, due to a missing '::template type'. libstdc++-v3/ChangeLog: * include/std/mdspan (submdspan): Fix missing '::template'. Reviewed-by: Jonathan Wakely <jwakely@redhat.com> Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
This commit is contained in:
parent
b6e4fd8640
commit
6b78e97a0c
|
|
@ -3376,7 +3376,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
template<typename _ElementType, typename _Extents, typename _Layout,
|
||||
typename _Accessor, typename... _RawSlices>
|
||||
requires (sizeof...(_RawSlices) == _Extents::rank()
|
||||
&& __mdspan::__sliceable_mapping<typename _Layout::mapping<_Extents>,
|
||||
&& __mdspan::__sliceable_mapping<typename _Layout::template mapping<_Extents>,
|
||||
__mdspan::__full_extent_t<_RawSlices>...>)
|
||||
constexpr auto
|
||||
submdspan(
|
||||
|
|
|
|||
Loading…
Reference in New Issue