Skip to content

Commit 9450fb7

Browse files
committed
libstdc++: Use template keyword in __mapping_of alias template
This is needed to fix an error with Clang 19: include/c++/16.0.0/mdspan:512:30: error: use 'template' keyword to treat 'mapping' as a dependent template name 512 | is_same_v<typename _Layout::mapping<typename _Mapping::extents_type>, | ^ libstdc++-v3/ChangeLog: * include/std/mdspan (__mapping_of): Add template keyword.
1 parent 54c640b commit 9450fb7

File tree

1 file changed

+1
-1
lines changed
  • libstdc++-v3/include/std

1 file changed

+1
-1
lines changed

libstdc++-v3/include/std/mdspan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
509509

510510
template<typename _Layout, typename _Mapping>
511511
concept __mapping_of =
512-
is_same_v<typename _Layout::mapping<typename _Mapping::extents_type>,
512+
is_same_v<typename _Layout::template mapping<typename _Mapping::extents_type>,
513513
_Mapping>;
514514

515515
template<typename _Mapping>

0 commit comments

Comments
 (0)