diff options
| author | Martin Ridgers <[email protected]> | 2022-01-07 13:02:09 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2022-01-07 13:55:27 +0100 |
| commit | bd33d634762116664e41d69670e17c7908517e83 (patch) | |
| tree | 032c16c480edd10d69554f0d2750bbe5617dcc24 | |
| parent | Apple Clang does not implement std::jthread (diff) | |
| download | zen-bd33d634762116664e41d69670e17c7908517e83.tar.xz zen-bd33d634762116664e41d69670e17c7908517e83.zip | |
Use Zen's Invocable to cover C++ libs that do not implement concepts
| -rw-r--r-- | zenstore/include/zenstore/cas.h | 4 | ||||
| -rw-r--r-- | zenstore/include/zenstore/caslog.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zenstore/include/zenstore/cas.h b/zenstore/include/zenstore/cas.h index 9371e4de0..1823fd630 100644 --- a/zenstore/include/zenstore/cas.h +++ b/zenstore/include/zenstore/cas.h @@ -49,7 +49,7 @@ public: [[nodiscard]] inline bool IsEmpty() const { return m_ChunkSet.empty(); } [[nodiscard]] inline size_t GetSize() const { return m_ChunkSet.size(); } - inline void FilterChunks(std::span<const IoHash> Candidates, std::invocable<const IoHash&> auto MatchFunc) + inline void FilterChunks(std::span<const IoHash> Candidates, Invocable<const IoHash&> auto MatchFunc) { for (const IoHash& Candidate : Candidates) { @@ -60,7 +60,7 @@ public: } } - inline void FilterChunks(std::span<const IoHash> Candidates, std::invocable<const IoHash&, bool> auto MatchFunc) + inline void FilterChunks(std::span<const IoHash> Candidates, Invocable<const IoHash&, bool> auto MatchFunc) { for (const IoHash& Candidate : Candidates) { diff --git a/zenstore/include/zenstore/caslog.h b/zenstore/include/zenstore/caslog.h index 1ecb721f7..1bd11800c 100644 --- a/zenstore/include/zenstore/caslog.h +++ b/zenstore/include/zenstore/caslog.h @@ -66,7 +66,7 @@ public: // This should be called before the Replay() is called to do some basic sanity checking bool Initialize() { return true; } - void Replay(std::invocable<const T&> auto Handler) + void Replay(Invocable<const T&> auto Handler) { CasLogFile::Replay([&](const void* VoidPtr) { const T& Record = *reinterpret_cast<const T*>(VoidPtr); |