Replace Boost shared pointers

Generated with the assistance of an AI coding tool.
This commit is contained in:
Thomas Krijnen
2026-08-08 15:37:53 +02:00
parent 4e49b640a7
commit 8c003110fe
34 changed files with 110 additions and 105 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
#include <boost/dynamic_bitset.hpp>
#include <boost/logic/tribool.hpp>
#include <boost/shared_ptr.hpp>
#include <memory>
#include <string>
#include <vector>
+1 -1
View File
@@ -26,7 +26,7 @@
#include "utils.h"
#include <atomic>
#include <boost/shared_ptr.hpp>
#include <memory>
class aggregate_of_instance;
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -41,7 +41,7 @@
#include <cstring>
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
#include <memory>
#include <boost/logic/tribool.hpp>
#include <boost/dynamic_bitset.hpp>
+1 -1
View File
@@ -2750,7 +2750,7 @@ void file::remove_entity(const express::base& entity) {
// 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) {
// express::base *const inst = *it;
// model->remove_entity(inst);
+1 -1
View File
@@ -36,7 +36,7 @@
#include "storage.h"
#include <boost/dynamic_bitset.hpp>
#include <boost/shared_ptr.hpp>
#include <memory>
#include <cstring>
#include <iostream>
#include <string>