[xsd-users] Parser Compile errors

Boris Kolpackov boris at codesynthesis.com
Tue Nov 21 14:54:08 EST 2006


Hi John,

John Davis <davis at kapsoft.com> writes:

> Header of Test0.cpp code snippet:
>
>
>
> struct codec_parser: codec_type<void, cSpec_parser, cccInterface_parser,
> initialization_parser, DigitalData_parser, std::string>
>
> {
>
> [...]
>
> };
>
>
>
> struct SAL_parser: SAL_type<void, std::string, codec_parser>

I am not sure you want to make the last template argument 'codec_parser'.
Generally the type that you put there should be the same as the result
type (the first template argument) of one of the parsers. Here you are
going to use codec_parser to handle 'codec' so the type you use here
should be the same as the result type of codec_parser, which is void.
So this line should probably be:

struct SAL_parser: SAL_type<void, std::string, void>


>    virtual void codec (const codec_parser& xxx)

This will then become:

virtual void codec ()


> // THIS IS LINE 95 (see the compiler errors listed above)

Hm, I am not sure why the compiler is complaining. Hopefully it will
go away after the changes above.


hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061121/a2c9e6ba/attachment.pgp


More information about the xsd-users mailing list