Skip to content

fuse_core: Don't fail with boost >= 1.86#423

Open
wentasah wants to merge 1 commit intolocusrobotics:jazzyfrom
wentasah:boost-uuid-hash-jazzy
Open

fuse_core: Don't fail with boost >= 1.86#423
wentasah wants to merge 1 commit intolocusrobotics:jazzyfrom
wentasah:boost-uuid-hash-jazzy

Conversation

@wentasah
Copy link
Copy Markdown

@wentasah wentasah commented Mar 28, 2026

Boost >= 1.86 provides std::hash<boost::uuids::uuid> itself; guard against redefinition since fuse_core::UUID is an alias for boost::uuids::uuid.

See https://www.boost.org/doc/libs/latest/libs/uuid/doc/html/uuid.html#changes_changes_in_boost_1_86_0_major_update

This prevent the following compile error:

In file included from /build/fuse-release-release-jazzy-fuse_core-1.1.4-1/src/uuid.cpp:41:
/build/fuse-release-release-jazzy-fuse_core-1.1.4-1/include/fuse_core/uuid.hpp:192:8: error: redefinition of 'struct std::hash<boost::uuids::uuid>'
  192 | struct hash<fuse_core::UUID>
      |        ^~~~~~~~~~~~~~~~~~~~~

Boost >= 1.86 provides std::hash<boost::uuids::uuid> itself; guard
against redefinition since fuse_core::UUID is an alias for
boost::uuids::uuid.

See https://www.boost.org/doc/libs/latest/libs/uuid/doc/html/uuid.html#changes_changes_in_boost_1_86_0_major_update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant