Skip to content

build failure with boost 1.86+ redefinition of 'struct std::hash<boost::uuids::uuid>' #72

@katrinafyi

Description

@katrinafyi
gtirb> In file included from /build/source/include/gtirb/Node.hpp:19,
gtirb>                  from /build/source/include/gtirb/AuxData.hpp:19,
gtirb>                  from /build/source/include/gtirb/AuxDataContainer.hpp:19,
gtirb>                  from /build/source/src/AuxDataContainer.cpp:16:
gtirb> /build/source/include/gtirb/Context.hpp:146:20: error: redefinition of 'struct std::hash<boost::uuids::uuid>'
gtirb>   146 | template <> struct hash<::gtirb::UUID> {
gtirb>       |                    ^~~~~~~~~~~~~~~~~~~
gtirb> In file included from /build/source/include/gtirb/Context.hpp:21:
gtirb> include/boost/uuid/uuid.hpp:388:19: note: previous definition of 'struct std::hash<boost::uuids::uuid>'

I think this is caused by this change, from the release notes:

  • Moved std::hash support from uuid_hash.hpp to uuid.hpp.

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