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:
Luc Grosheintz 2025-12-12 12:28:01 +01:00 committed by Tomasz Kamiński
parent b6e4fd8640
commit 6b78e97a0c
1 changed files with 1 additions and 1 deletions

View File

@ -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(