From 9679d450fcd12c068963f1d46fb2194b302726db Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 21 Jul 2013 13:41:27 -0300 Subject: [PATCH] Fixed string conversion error --- src/ifcwrap/IfcPython.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +};