Code is more portable (older compilers does not accept ofstream with std::string...
[anna.git] / example / diameter / launcher / main.cpp
index 2916704..5a5db42 100644 (file)
@@ -1503,7 +1503,7 @@ throw(anna::RuntimeException) {
 
     if(lst.size() > 1) {
       std::string all_in_one = "./dictionary-all-in-one.xml";
-      std::ofstream out(all_in_one, std::ifstream::out);
+      std::ofstream out(all_in_one.c_str(), std::ifstream::out);
       std::string buffer = d->asXMLString();
       out.write(buffer.c_str(), buffer.size());
       out.close();