mac os doesn't have throwing variant get

This commit is contained in:
Christopher Lackner 2019-08-27 18:44:23 +02:00
parent e2df8a5abc
commit 7021ff8cb2

View File

@ -99,9 +99,9 @@ DLL_HEADER void ExportGeom2d(py::module &m)
seg->bc = *intptr;
else
{
auto bcname = get<string>(*bc);
auto bcname = get_if<string>(&*bc);
seg->bc = self.GetNSplines() + 1;
self.SetBCName(seg->bc, bcname);
self.SetBCName(seg->bc, *bcname);
}
}
else