https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85671

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Jul  4 13:59:06 2018
New Revision: 262404

URL: https://gcc.gnu.org/viewcvs?rev=262404&root=gcc&view=rev
Log:
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.

Backport from mainline
2018-05-07  Jonathan Wakely  <jwak...@redhat.com>

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

Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/experimental/bits/fs_path.h

Reply via email to