diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index f0e58dbf4d..e0e48cfcb9 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -144,7 +144,7 @@ $self->AddEntity(e); } void write(const std::string& fn) { - std::ofstream f(fn); + std::ofstream f(fn.c_str()); f << (*$self); } } @@ -159,4 +159,4 @@ namespace std { %template(Ints) vector; %template(Doubles) vector; %template(Strings) vector; -}; \ No newline at end of file +};