Integrating a C++20 like span library

https://github.com/tcbrindle/span

Replacing a homebrew const pointer wrapper const correctness helper
with the C++20 like span library.

One day when we switch to C++20 we will just use the C++20 spans instead.
This commit is contained in:
Vojtech Bubnik 2022-10-19 16:26:59 +02:00
parent acbc60f3e3
commit 2ced762948
12 changed files with 770 additions and 57 deletions
src/libslic3r

View file

@ -2205,7 +2205,7 @@ void PrintObject::_generate_support_material()
}
}
static void project_triangles_to_slabs(ConstLayerPtrsAdaptor layers, const indexed_triangle_set &custom_facets, const Transform3f &tr, bool seam, std::vector<Polygons> &out)
static void project_triangles_to_slabs(SpanOfConstPtrs<Layer> layers, const indexed_triangle_set &custom_facets, const Transform3f &tr, bool seam, std::vector<Polygons> &out)
{
if (custom_facets.indices.empty())
return;