Boost logo

Boost :

Subject: Re: [boost] [lexical_cast] Fast conversion from boost::iterator_range<std::string::iterator>?
From: Matthew Chambers (matt.chambers42_at_[hidden])
Date: 2011-11-28 13:40:56


On 11/23/2011 4:49 PM, Jeroen Habraken wrote:
> You might be interested in boost.coerce, a type-to-string and
> string-to-type conversion library. The code can be found at
> http://svn.boost.org/svn/boost/sandbox/coerce/ and an initial version
> of the documentation at http://vexocide.org/coerce/.
>
> It has the following customization points:
> http://vexocide.org/coerce/coerce/traits/string/is_string.html and
> http://vexocide.org/coerce/coerce/traits/string/string_traits.html,
> which would allow you to teach it about
> boost::iterator_range<std::string::iterator>.
>
> If I find time I'll write a small example.

Unless I'm missing something, using Spirit in a header-only conversion library is pretty much a
non-starter due to the compile time -explosion- hit. If you moved the inclusion of Spirit into a CPP
I'd definitely consider it.

Thanks,
-Matt


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