We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 616bc22 commit b8e92fbCopy full SHA for b8e92fb
src/logging.h
@@ -46,10 +46,10 @@ struct SourceLocationHasher {
46
size_t operator()(const std::source_location& s) const noexcept
47
{
48
// Use CSipHasher(0, 0) as a simple way to get uniform distribution.
49
- return static_cast<size_t>(CSipHasher(0, 0)
50
- .Write(std::hash<std::string_view>{}(s.file_name()))
51
- .Write(s.line())
52
- .Finalize());
+ return size_t(CSipHasher(0, 0)
+ .Write(s.line())
+ .Write(MakeUCharSpan(std::string_view{s.file_name()}))
+ .Finalize());
53
}
54
};
55
0 commit comments