aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-01-23 15:35:29 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-02-01 15:26:53 +0000
commite81a69757720158fee81fc282cae02c4c82ab672 (patch)
treec33e95b53f66778de355abbc88d7d12d72ef415f /gcc
parenta5eb246e04d08ee6d7de06a2389fc3b541ecdde9 (diff)
downloadgcc-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