]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Mark new istream::ignore overload always_inline
authorJonathan Wakely <jwakely@redhat.com>
Mon, 24 Nov 2025 10:07:03 +0000 (10:07 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 24 Nov 2025 10:12:38 +0000 (10:12 +0000)
This means we don't need to add the new member to the explicit
instantiation definition.

libstdc++-v3/ChangeLog:

* include/std/istream (istream::ignore(streamsize, char)): Add
always_inline attribute.

libstdc++-v3/include/std/istream

index 285c41cf02baf4e3c126f424d261b940a943f3af..ea232a71f5a8917c8241e7b0478e2b0328aaaebf 100644 (file)
@@ -556,6 +556,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       ignore();
 
 #if __cplusplus > 202302L
+      [[__gnu__::__always_inline__]]
       __istream_type&
       ignore(streamsize __n, char __delim) requires same_as<_CharT, char>
       { return ignore(__n, traits_type::to_int_type(__delim)); }