]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
PR libstdc++/85671 allow copy elision in path concatenation
authorJonathan Wakely <jwakely@redhat.com>
Mon, 7 May 2018 17:26:28 +0000 (18:26 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 7 May 2018 17:26:28 +0000 (18:26 +0100)
commita989f6378b1b08aa3145c7bd77477282ddc5e553
tree22ec0214ed49d618214ea821153e5f60692eb169
parent6fa8c51f72ada5e467f5e3b9552ab22ef68dcfd3
PR libstdc++/85671 allow copy elision in path concatenation

By performing the /= operation on a named local variable instead of a
temporary the copy made for the return value can be elided.

PR libstdc++/85671
* include/bits/fs_path.h (operator/): Permit copy elision.
* include/experimental/bits/fs_path.h (operator/): Likewise.

From-SVN: r260009
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/include/experimental/bits/fs_path.h