]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix -Wdeprecated warning about implicit capture of 'this'
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Jan 2024 15:35:29 +0000 (15:35 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 1 Feb 2024 15:26:53 +0000 (15:26 +0000)
commite81a69757720158fee81fc282cae02c4c82ab672
treec33e95b53f66778de355abbc88d7d12d72ef415f
parenta5eb246e04d08ee6d7de06a2389fc3b541ecdde9
libstdc++: Fix -Wdeprecated warning about implicit capture of 'this'

In C++20 it's deprecated for a [=] lambda capture to capture the 'this'
pointer. Using resize_and_overwrite with a lambda seems like overkill to
write three chars to the string anyway. Just resize the string and
overwrite the end of it directly.

libstdc++-v3/ChangeLog:

* include/experimental/internet (network_v4::to_string()):
Remove lambda and use of resize_and_overwrite.
libstdc++-v3/include/experimental/internet
This page took 0.061209 seconds and 6 git commands to generate.