Boost logo

Boost :

Subject: Re: [boost] [convert] Now with Boost.Parameter interface.
From: David Abrahams (dave_at_[hidden])
Date: 2009-06-05 12:53:07


on Mon May 04 2009, Vladimir Batov <vladimir.batov-AT-wrsa.com.au> wrote:

> Should have proof-read before posting. Apologies.
>
>> Vladimir.Batov <at> wrsa.com.au> writes:
>> 1. Both interfaces (for locale and dothrow) are currently supported:
>>
>> #1 int i=convert<int>::from(str, 0)(locale_=new_locale)(throw_=true);
>> #2 int i=convert<int>::from(str, 0) >> new_locale >> dothrow;
>>
>> Should I remove #1?
>
> Meant to say "Should I remove #2?"
>
>> I understand how to achieve
>>
>> int i=convert<int>::from(str, 0)((locale_=new_locale, throw_=true));
>>
>> (with double quotes) ...
>> (a list inside single quotes).
>
> Certainly meant double *brackets*. Apologies.

You should be able to do it without the double parens. Is there
documentation missing?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk