mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
gcc error #711
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
|
||||
#include "Poco/JSONString.h"
|
||||
#include <ostream>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -39,13 +40,13 @@ std::string toJSON(char c)
|
||||
|
||||
void toJSON(const std::string& value, std::ostream& out, bool wrap)
|
||||
{
|
||||
if (wrap) out << std::string(1, '"');
|
||||
if (wrap) out << '"';
|
||||
for (std::string::const_iterator it = value.begin(),
|
||||
end = value.end(); it != end; ++it)
|
||||
{
|
||||
out << toJSON(*it);
|
||||
}
|
||||
if (wrap) out << std::string(1, '"');
|
||||
if (wrap) out << '"';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user