use assignment operator

This commit is contained in:
Thomas Krijnen
2021-08-07 10:08:19 +02:00
parent ef5b41b566
commit 85645aca28
+1 -1
View File
@@ -872,7 +872,7 @@ namespace {
template <typename T, typename U>
void push_back_to_maybe_optional(boost::optional<boost::shared_ptr<T>>& t, U* u) {
if (!t) {
t->emplace(new T);
t = boost::shared_ptr<T>(new T);
}
(*t)->push(u);
}