
On 07/10/2010 22:04, Jeroen Habraken wrote:
On 7 October 2010 22:59, Matthew Herrmann<matthew.herrmann@zomojo.com> 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... lines 120 to 165
If the function is inlined a call to strlen will probably be evaluated at compile-time anyway.