|
Boost : |
Subject: Re: [boost] construe_cast, call for interest and feedback
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-10-09 10:21:26
----- Original Message -----
From: "PB" <newbarker_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, October 09, 2010 2:42 PM
Subject: Re: [boost] construe_cast, call for interest and feedback
> Rather than introducing another casting method, could lexical_cast be
> reworked internally to build upon Spirit? That way previous
> investments in lexical_cast will just work faster with no changes,
> Also, I won't need to stop and think which one I should be using.
>
> The other comment I have is about compilation times with Spirit. Would
> a client of construe_cast be pulling in the Spirit headers? If so, my
> compiler (VC9/VS2008) would take a lot longer to build the compilation
> unit. I don't mind this overhead for source files that are using
> Spriit to do non-trivial parsing, but for casts to/from ints and
> strings which are very common, I wouldn't want to wait for such long
> compiles.
I think this is the major advantage of making a diiferent class, you will be able to choose run-time versus compile-time improvements.
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk