diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-08-28 16:17:18 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-08-29 09:09:26 +0200 |
commit | c9a417ac60366ac58895148ca26d8ee54c376aa1 (patch) | |
tree | d3912988ce373d394ba2e8a935d82cf73605ef74 /src/utils/cpp/concepts.hpp | |
parent | 21b9309363ba122342f28b6de0ea78c48650bdc5 (diff) | |
download | justbuild-c9a417ac60366ac58895148ca26d8ee54c376aa1.tar.gz |
async_map_utils: Pass key_printer also for reporting pending tasks...
...in async map instances, same as for reporting cycles.
This removes the restriction that the key object has to posses the
ToString method, allowing it to be used, e.g., with just-mr maps.
The now obsolete HasToString concept is removed.
Diffstat (limited to 'src/utils/cpp/concepts.hpp')
-rw-r--r-- | src/utils/cpp/concepts.hpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/utils/cpp/concepts.hpp b/src/utils/cpp/concepts.hpp index 90946762..7cf943b6 100644 --- a/src/utils/cpp/concepts.hpp +++ b/src/utils/cpp/concepts.hpp @@ -41,13 +41,6 @@ concept HasSize = requires(T const c) { } -> same_as<std::size_t>; // TODO(modernize): replace by std::same_as }; -template <typename T> -concept HasToString = requires(T const t) { - { - t.ToString() - } -> same_as<std::string>; // TODO(modernize): replace by std::same_as -}; - template <class T> concept InputIterableContainer = requires(T const c) { { |