fix 'using namespace std::string_literals;' statement in generated code

This commit is contained in:
Günter Obiltschnig 2020-02-10 19:03:18 +01:00
parent 1be791a8aa
commit ab453d0097

View File

@ -68,7 +68,6 @@ void CodeWriter::writeImpl(std::ostream& ostr, const std::string& headerFileName
ostr << "#include \"Poco/StreamCopier.h\"\n";
ostr << "#include <sstream>\n";
}
ostr << "\n\nusing namespace std::string_literals;\n\n";
std::string decls(_page.implDecls().str());
if (!decls.empty())
@ -76,6 +75,8 @@ void CodeWriter::writeImpl(std::ostream& ostr, const std::string& headerFileName
ostr << decls << "\n\n";
}
ostr << "using namespace std::string_literals;\n\n\n";
beginNamespace(ostr);
std::string path = _page.get("page.path", "");