Fixed string conversion error

This commit is contained in:
Yorik van Havre
2013-07-21 13:41:27 -03:00
parent d8d221dce3
commit 9679d450fc
+2 -2
View File
@@ -144,7 +144,7 @@
$self->AddEntity(e); $self->AddEntity(e);
} }
void write(const std::string& fn) { void write(const std::string& fn) {
std::ofstream f(fn); std::ofstream f(fn.c_str());
f << (*$self); f << (*$self);
} }
} }
@@ -159,4 +159,4 @@ namespace std {
%template(Ints) vector<int>; %template(Ints) vector<int>;
%template(Doubles) vector<double>; %template(Doubles) vector<double>;
%template(Strings) vector<string>; %template(Strings) vector<string>;
}; };