Subject: Re: [boost] Boost.Conversion - pre review request
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2011-07-09 10:57:30
On Jul 9, 2011, at 10:41 AM, "Hartmut Kaiser" <hartmut.kaiser_at_[hidden]> wrote:
>> I don't see why we need to specify that the format is hexadecimal. I would
>> expect that the spirit grammar associated to the coerce library will take
>> care of all the formats without any specific additional tag.
> Doing implicit conversion from 0x17 to 'int' without explicit guidance from the user (i.e. by telling to convert from hex) is not a good idea, IMHO. I'd suggest to make the conversion explicit as much as possible, which usually amounts to the least surprised user.
E.g. 700 is different values in octal, decimal, hexadecimal.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk