mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
mac os doesn't have throwing variant get
This commit is contained in:
parent
e2df8a5abc
commit
7021ff8cb2
@ -99,9 +99,9 @@ DLL_HEADER void ExportGeom2d(py::module &m)
|
|||||||
seg->bc = *intptr;
|
seg->bc = *intptr;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto bcname = get<string>(*bc);
|
auto bcname = get_if<string>(&*bc);
|
||||||
seg->bc = self.GetNSplines() + 1;
|
seg->bc = self.GetNSplines() + 1;
|
||||||
self.SetBCName(seg->bc, bcname);
|
self.SetBCName(seg->bc, *bcname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user