
2 Apr
2008
2 Apr
'08
7:30 a.m.
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