[xsd-users] Ambiguous ostream operator
david.r.moss at selex-comms.com
david.r.moss at selex-comms.com
Mon Jun 18 10:40:33 EDT 2007
Boris,
> I am not sure why VC++ complains about it being ambiguous. g++ correctly
> points out that there is simply no match. I think VC++ is confused by
> the serialization operators (which do not match anyway).
Wouldn't be the first time vc++ falls short of g++ :)
> Let me know if you have to stick with 2.3.1 and I will try to come up
> with a patch. Otherwise you can use 3.0.0.b1. It has quite a few new
> features and bugfixes.
I can't currently see a reason not to use 3.0.0.b1 so don't worry about a
patch. thanks anyway, and for the swift response.
Cheers,
Dave.
Dave Moss
SELEX Communications
Grange Road
Christchurch
Dorset BH23 4JE
United Kingdom
Tel: + 44 (0) 1202 404841
Email: david.r.moss at selex-comms.com
xsd-users-bounces at codesynthesis.com wrote on 06/18/2007 03:15:49 PM:
> Hi Dave,
>
> david.r.moss at selex-comms.com <david.r.moss at selex-comms.com> writes:
>
> > xsd cxx-tree --generate-serialization empty-list-test.xsd
> >
> > i get the 'error C2593: 'operator <<' is ambiguous' error with the
> > following code:
> >
> > // cout << "list:" << l << "." << endl;
>
> I am not sure why VC++ complains about it being ambiguous. g++ correctly
> points out that there is simply no match. I think VC++ is confused by
> the serialization operators (which do not match anyway). In any case,
> you need to add the --generate-ostream option to the command line in
> order to get ostream operators for generated types. After adding this
> option the code compiles fine for me.
>
> > I discovered this while trying to figure out why an empty list read
from
> > file (see attached xml) resulted in an object containing one
> > (garbage-looking) item - i was using xsd version 2.3.1 at the time;
that
> > bug seems to have been fixed in 3.0.0.b1!
>
> Let me know if you have to stick with 2.3.1 and I will try to come up
> with a patch. Otherwise you can use 3.0.0.b1. It has quite a few new
> features and bugfixes.
>
> hth,
> -boris
>
------------------------------------------------------------
This email and any attached files contains company confidential information which may be legally privileged. It is intended only for the person(s) or entity to which it is addressed and solely for the purposes set forth therein. If you are not the intended recipient or have received this email in error please notify the sender by return, delete it from your system and destroy any local copies. It is strictly forbidden to use the information in this email including any attachment or part thereof including copying, disclosing, distributing, amending or using for any other purpose.
In addition the sender excludes all liabilities (whether tortious or common law) for damage or breach arising or related to this email including but not limited to viruses and libel.
SELEX Communications Limited is a Private Limited Company registered in England and Wales under Company Number 964533 and whose Registered Office is Marconi House, New Street, CHELMSFORD, Essex. CM1 1PL. England.
More information about the xsd-users
mailing list