diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 05e0edbb..3dfc36d3 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -939,7 +939,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) bool grow_edges) { BoundaryLayerParameters blp; - if(int* bc = std::get_if(&boundary); bc) + if(int* bc = get_if(&boundary); bc) { for (int i = 1; i <= self.GetNFD(); i++) if(self.GetFaceDescriptor(i).BCProperty() == *bc) @@ -947,7 +947,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) } else { - regex pattern(std::get(boundary)); + regex pattern(*get_if(&boundary)); for(int i = 1; i<=self.GetNFD(); i++) if(regex_match(self.GetFaceDescriptor(i).GetBCName(), pattern)) blp.surfid.Append(i); @@ -959,7 +959,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) } else { - auto thicknesses = get(thickness); + auto thicknesses = *get_if(&thickness); for(auto val : thicknesses) blp.heights.Append(val.cast()); } @@ -975,7 +975,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) } else { - auto materials = get(material); + auto materials = *get_if(&material); if(py::len(materials) != prismlayers) throw Exception("Length of thicknesses and materials must be same!"); for(auto i : Range(prismlayers))