diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-08-12 16:10:21 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-09-13 10:51:13 +0200 |
commit | 9119de3a643f8adf2c4a12587e32577caa762b5a (patch) | |
tree | d1e01b98770002d5a27b0d95e317817fbf2eac40 /src/utils | |
parent | 693173e3b0ff9ddf3018e42b4e880f5aa18a978a (diff) | |
download | justbuild-9119de3a643f8adf2c4a12587e32577caa762b5a.tar.gz |
Fix build with gcc/g++
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/cpp/concepts.hpp | 4 |
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>; }; |