Don't throw compilation error when NO_ASSERT is used.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-04-22 12:02:00 +02:00
1 parent 91b9854932
commit 479a240c6f
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ namespace Arbutils::Collections {
}
inline void Insert(const KeyT& key, const ValueT& value) {
auto v = _map.insert({key, value});
[[maybe_unused]] auto v = _map.insert({key, value});
#ifndef NO_ASSERT
if (!v.second)
throw std::logic_error("Key already exists");