Skip to content

Commit 1855bcd

Browse files
Comment on potential gotcha
Added comment on hard to track potential error caused by #define in irep_hash This could save external users time (internal users shouldn't encounter this as we don't use Boost)
1 parent 5f272f7 commit 1855bcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/irep_hash.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ inline std::size_t basic_hash_finalize(
148148
return h1;
149149
}
150150

151+
// Boost uses the symbol hash_combine, if you're getting problems here then
152+
// you've probably included a Boost header after this one
151153
#define hash_combine(h1, h2) \
152154
basic_hash_combine<sizeof(std::size_t)*8>(h1, h2)
153155
#define hash_finalize(h1, len) \

0 commit comments

Comments
 (0)