diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-05-07 18:26:28 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-05-07 18:26:28 +0100 |
commit | a989f6378b1b08aa3145c7bd77477282ddc5e553 (patch) | |
tree | 22ec0214ed49d618214ea821153e5f60692eb169 /gcc/objcp/objcp-lang.c | |
parent | 6fa8c51f72ada5e467f5e3b9552ab22ef68dcfd3 (diff) | |
download | gcc-a989f6378b1b08aa3145c7bd77477282ddc5e553.zip gcc-a989f6378b1b08aa3145c7bd77477282ddc5e553.tar.gz gcc-a989f6378b1b08aa3145c7bd77477282ddc5e553.tar.bz2 |
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
Diffstat (limited to 'gcc/objcp/objcp-lang.c')
0 files changed, 0 insertions, 0 deletions