sparse_set: suppress warnings due to unused expressions

This commit is contained in:
Michele Caini
2023-01-10 14:32:43 +01:00
parent 232ffebc1e
commit 59f807fd02

View File

@@ -975,7 +975,9 @@ public:
/*! @brief Clears a sparse set. */
void clear() {
empty() || (clear_all(), true);
if(!empty()) {
clear_all();
}
}
/**