storage: refine ::pop to improve perf for trivially destructible types - close #1311
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user