mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
Replace Boost shared pointers
Generated with the assistance of an AI coding tool.
This commit is contained in:
+1
-1
@@ -390,7 +390,7 @@ public:
|
||||
///
|
||||
/// Attention when running remove_entity inside a loop over a list of entities to be removed.
|
||||
/// This invalidates the iterator. A workaround is to reverse the loop:
|
||||
/// boost::shared_ptr<aggregate_of_instance> entities = ...;
|
||||
/// std::shared_ptr<aggregate_of_instance> entities = ...;
|
||||
/// for (auto it = entities->end() - 1; it >= entities->begin(); --it) {
|
||||
/// ifcopenshell::IfcBaseClass *const inst = *it;
|
||||
/// model->remove_entity(inst);
|
||||
|
||||
Reference in New Issue
Block a user