]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add comment to gslice::operator=(const gslice&) [PR100147]
authorJonathan Wakely <jwakely@redhat.com>
Sun, 4 Feb 2024 21:39:11 +0000 (21:39 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 8 Feb 2024 21:32:42 +0000 (21:32 +0000)
commit4e5dc6d9686a34d446147b923fe838389758a512
tree60df200ae6258d0f7cde4a819a7d2283cf073d10
parent232ffb61ceb63c4a86a8bc67f1db989c2124db5f
libstdc++: Add comment to gslice::operator=(const gslice&) [PR100147]

There's no need to check for self-assignment here, it would just add
extra code for an unlikely case. Add a comment saying so.

libstdc++-v3/ChangeLog:

PR libstdc++/100147
* include/bits/gslice.h (operator=): Add comment about lack of
self-assignment check.
libstdc++-v3/include/bits/gslice.h