
----- Original Message ----- From: "PB" <newbarker@gmail.com> To: <boost@lists.boost.org> 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