$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2005-05-17 16:25:25
"Thorsten Ottosen" <nesotto_at_[hidden]> writes:
> Would it be ok with people if const char[N] was the only
> special case?
No.
> (Afterall, that type is not much use as a buffer)
char buffer1[1000];
char buffer2[1000];
template <class Range1, class Range2>
void copy(Range1 const& src, Range2& dst)
{
// ... range operations here
// note that if Range1 was char[N] it will be treated as a string
}
// ...
copy(buffer1, buffer2);
-- Dave Abrahams Boost Consulting www.boost-consulting.com