Replace Boost function callbacks

Generated with the assistance of an AI coding tool.
This commit is contained in:
Thomas Krijnen
2026-08-08 16:28:47 +02:00
parent 99a09a2a3c
commit b706121f53
10 changed files with 20 additions and 27 deletions
+2 -2
View File
@@ -25,7 +25,7 @@
#include "../ifcparse/file.h"
#include "../plugin/plugin.h"
#include <boost/function.hpp>
#include <functional>
#include <memory>
#include <filesystem>
@@ -64,7 +64,7 @@ struct SERIALIZERS_API document_serializer_context {
class SERIALIZERS_API document_serializer_registry {
public:
typedef boost::function<std::shared_ptr<serializer>(const document_serializer_context&)> create_fn;
typedef std::function<std::shared_ptr<serializer>(const document_serializer_context&)> create_fn;
void bind(const document_serializer_info& info, create_fn create, const ifcopenshell::plugin::module& module = ifcopenshell::plugin::module());
const document_serializer_info* find(const std::string& format, const std::string& schema_name = std::string()) const;
+3 -3
View File
@@ -24,7 +24,7 @@
#include "../ifcgeom/geometry_serializer.h"
#include "../plugin/plugin.h"
#include <boost/function.hpp>
#include <functional>
#include <memory>
#include <filesystem>
@@ -61,8 +61,8 @@ struct SERIALIZERS_API geometry_serializer_context {
class SERIALIZERS_API geometry_serializer_registry {
public:
typedef boost::function<std::shared_ptr<geometry_serializer>(const geometry_serializer_context&)> create_fn;
typedef boost::function<void(geometry_serializer_context&)> configure_fn;
typedef std::function<std::shared_ptr<geometry_serializer>(const geometry_serializer_context&)> create_fn;
typedef std::function<void(geometry_serializer_context&)> configure_fn;
void bind(const geometry_serializer_info& info, create_fn create, configure_fn configure = configure_fn(), const ifcopenshell::plugin::module& module = ifcopenshell::plugin::module());
bool has(const std::string& extension) const;