Addin exceptions in SvStream

Norbert Thiebaud nthiebaud at gmail.com
Tue Dec 11 00:06:22 PST 2012


On Mon, Dec 10, 2012 at 6:08 PM, Eike Rathke <erack at redhat.com> wrote:
> 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)
>

Ah yes indeed... sorry for the noise

Norbert


More information about the LibreOffice mailing list