summaryrefslogtreecommitdiff
path: root/src/utils/cpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-08-12 16:10:21 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-09-13 10:51:13 +0200
commit9119de3a643f8adf2c4a12587e32577caa762b5a (patch)
treed1e01b98770002d5a27b0d95e317817fbf2eac40 /src/utils/cpp
parent693173e3b0ff9ddf3018e42b4e880f5aa18a978a (diff)
downloadjustbuild-9119de3a643f8adf2c4a12587e32577caa762b5a.tar.gz
Fix build with gcc/g++
Diffstat (limited to 'src/utils/cpp')
-rw-r--r--src/utils/cpp/concepts.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/cpp/concepts.hpp b/src/utils/cpp/concepts.hpp
index 04b2bfcc..24efe70e 100644
--- a/src/utils/cpp/concepts.hpp
+++ b/src/utils/cpp/concepts.hpp
@@ -68,7 +68,9 @@ concept ClockHasFromTime = requires(std::time_t const t) {
template <typename T>
concept StrMapConstForwardIterator = requires(T const c) {
- { (*c).first }
+ {
+ std::remove_reference_t<decltype((*c).first)> { (*c).first }
+ }
->same_as<std::string const>;
};