|
Boost : |
Subject: Re: [boost] Boost.Conversion - pre review request
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2011-07-09 10:41:38
> 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.
Regards Hartmut
---------------
http://boost-spirit.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk