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
+3 -4
View File
@@ -7,8 +7,7 @@
#include "ifc_geomserialization_api.h"
#include <boost/function.hpp>
#include <functional>
#include <map>
#include <string>
@@ -21,8 +20,8 @@ namespace ifcopenshell {
namespace ifcopenshell::geom {
class IFC_GEOMSERIALIZATION_API opencascade_geometry_ifc_writer_registry {
public:
typedef boost::function3<express::base, ifcopenshell::file&, const conversion_result_shape&, double> tesselate_fn;
typedef boost::function3<express::base, ifcopenshell::file&, const conversion_result_shape&, bool> serialise_fn;
typedef std::function<express::base(ifcopenshell::file&, const conversion_result_shape&, double)> tesselate_fn;
typedef std::function<express::base(ifcopenshell::file&, const conversion_result_shape&, bool)> serialise_fn;
void bind(const std::string& schema_name, serialise_fn serialise, tesselate_fn tesselate, const ifcopenshell::plugin::module& module = ifcopenshell::plugin::module());
express::base tesselate(ifcopenshell::file& f, const conversion_result_shape& shape, double deflection) const;