storage: refine ::pop to improve perf for trivially destructible types - close #1311

This commit is contained in:
skypjack
2026-02-26 09:33:40 +01:00
parent b1758e221b
commit 79188ad748
3 changed files with 5 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ struct throwing_type {
}
}
~throwing_type() { /* make it non trivially destructible */ }
throwing_type &operator=(const throwing_type &other) {
trigger = other.trigger;
return *this;