diff options
Diffstat (limited to 'lib/collection.h')
-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; |