Boost logo

Boost :

Subject: Re: [boost] construe_cast, call for interest and feedback
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-10-11 05:28:42


On 07/10/2010 22:04, Jeroen Habraken wrote:
> On 7 October 2010 22:59, Matthew Herrmann<matthew.herrmann_at_[hidden]> wrote:
>> It would be nice to have
>>
>> construe_cast(lhs, rhs);
>>
>> so that there is no temporary copy for things like std::string on the lhs and type inferencing can be used to avoid writing the type name.
>
> This is indeed a feature I wish to add (possibly with a somewhat
> different interface).
>
>> Also are you adding array of char as an input specialization? I like the way it avoids the strlen for const char literals on the rhs.
>
> Yes I am, the specific specializations can be found at
> http://github.com/VeXocide/construe_cast/blob/master/boost/construe/iterable.hpp
> lines 120 to 165

If the function is inlined a call to strlen will probably be evaluated
at compile-time anyway.


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