Addin exceptions in SvStream
Eike Rathke
erack at redhat.com
Mon Dec 10 16:08:00 PST 2012
Hi Norbert,
On Monday, 2012-12-10 17:38:34 -0600, Norbert Thiebaud wrote:
> Am I thinking of something else or the current syntax is:
>
> if( ! (*stream>>meh))
> {
> /* error */
> }
> ...
>
> iow the >> operator return a boolean that indicate the sucess or
> failure of the >> operation...
No, all overloads return a SvStream&, otherwise things like
rStream >> some >> and >> another
would not work.
You probably have the uno::Any extractor in mind, which is used as
if (any >>= var)
Eike
--
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20121211/4726712e/attachment-0001.pgp>
More information about the LibreOffice
mailing list