mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
fix 'using namespace std::string_literals;' statement in generated code
This commit is contained in:
@@ -68,7 +68,6 @@ void CodeWriter::writeImpl(std::ostream& ostr, const std::string& headerFileName
|
|||||||
ostr << "#include \"Poco/StreamCopier.h\"\n";
|
ostr << "#include \"Poco/StreamCopier.h\"\n";
|
||||||
ostr << "#include <sstream>\n";
|
ostr << "#include <sstream>\n";
|
||||||
}
|
}
|
||||||
ostr << "\n\nusing namespace std::string_literals;\n\n";
|
|
||||||
|
|
||||||
std::string decls(_page.implDecls().str());
|
std::string decls(_page.implDecls().str());
|
||||||
if (!decls.empty())
|
if (!decls.empty())
|
||||||
@@ -76,6 +75,8 @@ void CodeWriter::writeImpl(std::ostream& ostr, const std::string& headerFileName
|
|||||||
ostr << decls << "\n\n";
|
ostr << decls << "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ostr << "using namespace std::string_literals;\n\n\n";
|
||||||
|
|
||||||
beginNamespace(ostr);
|
beginNamespace(ostr);
|
||||||
|
|
||||||
std::string path = _page.get("page.path", "");
|
std::string path = _page.get("page.path", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user