[committed] libstdc++: Avoid '_T' name as template argument in a comment

Jonathan Wakely jwakely@redhat.com
Fri Nov 13 17:53:48 GMT 2026


This is a forbidden name that shows up as a false positive when I grep
for uses of _T in the headers. Change it to just 'T'.

libstdc++-v3/ChangeLog:

	* include/bits/regex.h (basic_regex::assign(I, I, * flag_type)):
	Tweak comment to use T instead of _T.
---

Pushed to trunk.

 libstdc++-v3/include/bits/regex.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h
index dce420251db0..92aa6ec2210b 100644
--- a/libstdc++-v3/include/bits/regex.h
+++ b/libstdc++-v3/include/bits/regex.h
@@ -733,7 +733,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
 	      __glibcxx_requires_valid_range(__first, __last);
 	      if constexpr (is_pointer_v<_InputIterator>)
 		_M_compile(__first, __last, __flags);
-	      else // __normal_iterator<_T*, C>
+	      else // __normal_iterator<T*, C>
 		_M_compile(__first.base(), __last.base(), __flags);
 	    }
 	  else
-- 
2.56.0



More information about the Libstdc++ mailing list