Skip to content

ODR violations in boost::filesystem::path #279

Description

@frankmiller

There are a number of inline member functions in boost::filesystem::path that have different implementations depending on the definition of BOOST_FILESYSTEM_VERSION. When compiling boost.filesystem, BOOST_FILESYSTEM_VERSION is always set to 4. If a program uses boost.filesystem with BOOST_FILESYSTEM_VERSION set to 3, which is the default, then I believe this is an ODR violation because the program now has multiple definitions of the same function that do not consist of the same sequence of tokens.

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