From c4326e557c99dfc06100394cf803b5d0f4ca2f44 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 15 Dec 2023 14:31:40 +0100 Subject: [PATCH] Remove const --- nix/build-all.py | 1 + src/ifcgeom/taxonomy.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/build-all.py b/nix/build-all.py index 286c12f865..4571d32dd6 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -763,6 +763,7 @@ OFF_ON = ["OFF", "ON"] cmake_args = [ "-DUSE_MMAP=" "OFF", + "-DSCHEMA_VERSIONS=" "4x3_add2", "-DBUILD_EXAMPLES=" "OFF", "-DBUILD_SHARED_LIBS=" +OFF_ON[not BUILD_STATIC], "-DBOOST_ROOT=" f"{DEPS_DIR}/install/boost-{BOOST_VERSION}", diff --git a/src/ifcgeom/taxonomy.h b/src/ifcgeom/taxonomy.h index eae30e1069..4f12d81920 100644 --- a/src/ifcgeom/taxonomy.h +++ b/src/ifcgeom/taxonomy.h @@ -1264,7 +1264,7 @@ typedef item const* ptr; // @nb traverses nested collections template taxonomy::collection::ptr filter_in_place(taxonomy::collection::ptr collection, Fn fn) { - const auto& c = collection->children; + auto& c = collection->children; auto new_end = std::remove_if(c.begin(), c.end(), [fn](taxonomy::geom_item::ptr i) { return !apply_predicate_to_collection(i, fn); });