mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Fix set erase function (#308)
This commit is contained in:
parent
3c92e9035b
commit
cd5fd2c343
2 changed files with 7 additions and 1 deletions
|
|
@ -982,7 +982,7 @@ class set {
|
|||
|
||||
constexpr size_type erase(const key_type& key) noexcept {
|
||||
typename container_type::reference ref = a[key];
|
||||
bool res = ref;
|
||||
bool res = static_cast<bool>(ref);
|
||||
if (res) {
|
||||
--s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue