projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code is more portable (older compilers does not accept ofstream with std::string...
[anna.git]
/
example
/
diameter
/
launcher
/
main.cpp
diff --git
a/example/diameter/launcher/main.cpp
b/example/diameter/launcher/main.cpp
index
2916704
..
5a5db42
100644
(file)
--- a/
example/diameter/launcher/main.cpp
+++ b/
example/diameter/launcher/main.cpp
@@
-1503,7
+1503,7
@@
throw(anna::RuntimeException) {
if(lst.size() > 1) {
std::string all_in_one = "./dictionary-all-in-one.xml";
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();
std::string buffer = d->asXMLString();
out.write(buffer.c_str(), buffer.size());
out.close();