mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 07:28:38 +00:00
Remove const
This commit is contained in:
@@ -763,6 +763,7 @@ OFF_ON = ["OFF", "ON"]
|
|||||||
|
|
||||||
cmake_args = [
|
cmake_args = [
|
||||||
"-DUSE_MMAP=" "OFF",
|
"-DUSE_MMAP=" "OFF",
|
||||||
|
"-DSCHEMA_VERSIONS=" "4x3_add2",
|
||||||
"-DBUILD_EXAMPLES=" "OFF",
|
"-DBUILD_EXAMPLES=" "OFF",
|
||||||
"-DBUILD_SHARED_LIBS=" +OFF_ON[not BUILD_STATIC],
|
"-DBUILD_SHARED_LIBS=" +OFF_ON[not BUILD_STATIC],
|
||||||
"-DBOOST_ROOT=" f"{DEPS_DIR}/install/boost-{BOOST_VERSION}",
|
"-DBOOST_ROOT=" f"{DEPS_DIR}/install/boost-{BOOST_VERSION}",
|
||||||
|
|||||||
@@ -1264,7 +1264,7 @@ typedef item const* ptr;
|
|||||||
// @nb traverses nested collections
|
// @nb traverses nested collections
|
||||||
template <typename Fn>
|
template <typename Fn>
|
||||||
taxonomy::collection::ptr filter_in_place(taxonomy::collection::ptr collection, Fn fn) {
|
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) {
|
auto new_end = std::remove_if(c.begin(), c.end(), [fn](taxonomy::geom_item::ptr i) {
|
||||||
return !apply_predicate_to_collection(i, fn);
|
return !apply_predicate_to_collection(i, fn);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user