summaryrefslogtreecommitdiff
path: root/editors/imhex/files/patch-lib_libimhex_source_helpers_crypto.cpp
blob: 1b852a571f6c1071abf3b8e68bc8f5e9e7d1cd26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- lib/libimhex/source/helpers/crypto.cpp.orig	2022-01-30 20:55:06 UTC
+++ lib/libimhex/source/helpers/crypto.cpp
@@ -15,12 +15,13 @@
 
 #include <array>
 #include <span>
-#include <concepts>
 #include <functional>
 #include <algorithm>
 #include <cstddef>
 #include <cstdint>
 
+#include <range/v3/functional/concepts.hpp>
+
 #if MBEDTLS_VERSION_MAJOR <= 2
 
     #define mbedtls_md5_starts mbedtls_md5_starts_ret
@@ -44,7 +45,7 @@
 namespace hex::crypt {
     using namespace std::placeholders;
 
-    template<std::invocable<unsigned char *, size_t> Func>
+    template<ranges::invocable<unsigned char *, size_t> Func>
     void processDataByChunks(prv::Provider *data, u64 offset, size_t size, Func func) {
         std::array<u8, 512> buffer = { 0 };
         for (size_t bufferOffset = 0; bufferOffset < size; bufferOffset += buffer.size()) {