diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-28 03:00:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-28 03:00:55 +0000 |
commit | a8b2b32342738aaba6dfc662df232a67729a6bdb (patch) | |
tree | d8ca5b2c446b6d4baa2f7d294abc080c17dd7e18 | |
parent | Expose size of each container by type (diff) | |
download | ilt-ptrs.tar.bz2 ilt-ptrs.tar.xz ilt-ptrs.zip |
Fix check for bulk removalptrs
-rw-r--r-- | lib/collection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/collection.h b/lib/collection.h index 22dcc52..1c77e1c 100644 --- a/lib/collection.h +++ b/lib/collection.h @@ -132,7 +132,7 @@ public: removeAll() { auto removeAllFrom = [](auto & container) { - if constexpr (std::is_base_of_v<T, decltype(std::to_address(container.front()))>) { + if constexpr (std::is_base_of_v<T, std::decay_t<decltype(*container.front())>>) { const auto size = container.size(); container.clear(); return size; |