[Bug libstdc++/84118] filesystem::path concat does not accept value_type

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 14 11:23:00 GMT 2018


Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Ethan Smith from comment #0)
> As I have read the filesystem TS, I believe concat on path items should have
> an overload following:
> path& operator+=(value_type x);

It does have that overload.

> However, on trying to use 7.2.0 this overload seems not to work correctly.
> https://wandbox.org/permlink/S4DZ3witD15xz0lT

But you're using path::concat(value_type) not path::operator+=(value_type).

> TL;DR it would allow for constructs such as
> .concat(fs::path::preferred_separator)

No it wouldn't, because that uses concat, not operator+=

More information about the Gcc-bugs mailing list