[ http://issues.apache.org/jira/browse/AXISCPP-1003?page=comments#action_12443705 ] nadir amra commented on AXISCPP-1003: -------------------------------------
One way to fix this is ensureing that spaces get converted to '_'. Probably a better way is for the enumeration variable name to be constructed as: [type]_enum[#] where [type] is the type and [#] is a number, starting from 1. For example, in this case it would be static const FooType FooType_enum1 = "foo bar"; The only thing I worry about the latter solution is that I may break someone? Is that possible? If so, then I would go with the first solution. > Enumeration with spaces in values generates invalid hpp file > ------------------------------------------------------------ > > Key: AXISCPP-1003 > URL: http://issues.apache.org/jira/browse/AXISCPP-1003 > Project: Axis-C++ > Issue Type: Bug > Affects Versions: 1.6 Beta > Environment: Axis-CPP: axis-c-1.6b-Win32-trace-bin > Compiler: gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) > Reporter: Michael Koch > Attachments: testcase2.wsdl > > > When I set an enumeration value which contains spaces on a type, the hpp file > for the type does not compile. The space in the enumeration value seems to > translate to an incorrect static const generation. I'll attach a test case. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
