[xsd-users] Ostream operator for optional containers
Rance Kirtley
rkirtley at asinc.com
Wed Aug 6 10:44:12 EDT 2008
Boris
Thanks for the quick response. You're right, I had done exactly
that; apologies for the bogus report.
Rance
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Wednesday, August 06, 2008 10:06 AM
To: Rance Kirtley
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Ostream operator for optional containers
Hi Rance,
Rance Kirtley <rkirtley at asinc.com> writes:
> We get compile errors because the TimeStamp is in an optional container.
> My work-around is to further qualify the statement; eg
>
> o << ::std::endl << "TimeStamp: " << (*i.TimeStamp ()).hours();
Does not look like this is an optional container problem. Rather, it
seems that operator<< for xml_schema::time cannot be found for some
reason. Maybe you are using --generate-xml-schema and forgot to add
--generate-ostream to the command line (that option would trigger
inclusion of the stream insertion operators for the built-in XML
Schema types)?
Boris
More information about the xsd-users
mailing list