mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
use assignment operator
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user