mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Previous to this patch the code contained a workaround for the standard defect https://cplusplus.github.io/LWG/issue3657 where `std::filesystem::path` did not have a `std::hash` implementation. This patch allows compiling against versions of the STL that contain the fix to the above issue. This is done by running the compiler against code defining `std::hash<std::filesystem::path>`: if compilation succeeds, it means the fix is not there and we need to use the workaround, contained in `PathHash.h.workaround`. Otherwise, the fix is there and we use `PathHash.h.fixed` instead, which only includes the standard headers included by `PathHash.h.workaround`, so that one is a drop-in replacement of the other.
5 lines
58 B
Plaintext
5 lines
58 B
Plaintext
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <functional>
|