I'm using Ice 3.4.1 on linux build with gcc 4.4.3 and linked against the ZeroC patched version of mcpp.
slice2cpp generates bad code for the following slice :
The generated code is below, the double quotes inside the string aren't escaped anymore:module Foo
{
const string bar = "foo\"quoted\"bar";
};
If in the slice I use bar = "foo\\\"quoted\\\"bar" then slice2cpp generates valid c++ code.const ::std::string bar = "foo"quoted"bar";
I guess that the function writeConstantValue() in slice2cpp/Gen.cpp should do something similar to Slice::JavaVisitor::writeConstantValue() in the java generator.
Regards,
Jean-Baptiste

Reply With Quote
roperty", "clr:class", "cpp:class"] struct RaceXPAdjState {