$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Pavol Droba (droba_at_[hidden])
Date: 2008-04-02 03:30:54
Hi,
Mat Marcus wrote:
> In 1.34.1 we rely on boost::range::begin/end for const char* . That is
> we can invoke something like:
>
> const char* range= "foo";
> std::copy(boost::begin(range), boost::end(range), result);
>
> In 1.35.0, under MSVC 9.0, code similar to the above. Are there known
> issues with range::end(const char*) in 1.35.0 (e.g. no longer
> supported), or do I need to explore further?
>
You can use as_literal to convert const char* to a range:
boos::range<const char*> range(as_literal("foo"));
std::copy(boost::begin(range), boost::end(range), result);
explicit conversion is required due to ambiguities in representation of
character literals.
Best regards,
Pavol