Skip to content

Missing path operator+=(path p) in 1.78 #223

@achow101

Description

@achow101

I recently updated to boost 1.78 and a project which uses boost::filesystem no longer compiles, emitting the error:

error: no match for ‘operator+=’ (operand types are ‘fs::path’ and ‘std::remove_reference<fs::path&>::type’ {aka ‘fs::path’})

It seems to be that path& operator+=(const path& p); is missing from filesystem/path.hpp in 1.78 (as it exists in previous versions), although the documentation states that this function still exists.

If I change to using concat(p), it works, but path& concat(const path& p); is not available in older versions of boost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions