diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-01-23 15:35:29 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-02-01 15:26:53 +0000 |
commit | e81a69757720158fee81fc282cae02c4c82ab672 (patch) | |
tree | c33e95b53f66778de355abbc88d7d12d72ef415f /gcc | |
parent | a5eb246e04d08ee6d7de06a2389fc3b541ecdde9 (diff) | |
download | gcc-e81a69757720158fee81fc282cae02c4c82ab672.zip gcc-e81a69757720158fee81fc282cae02c4c82ab672.tar.gz gcc-e81a69757720158fee81fc282cae02c4c82ab672.tar.bz2 |
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.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions