Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
katrinafyi opened this issue Feb 6, 2025 · 0 comments

Comments

@katrinafyi
Copy link

katrinafyi commented Feb 6, 2025

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant