Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-05-17 21:30:51


"Thorsten Ottosen" <nesotto_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:ufywlzgsa.fsf_at_boost-consulting.com...
> | "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];
>
> boost::array<char,1000> buffer1;
> boost::array<char,1000> buffer2;
>
> ?
>
> | 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
>
> anyway, it seems I'm the only person
> with my view so I guess we should let experience/authority
> win for once :-)

Thank you. For what it's worth, that my other disagreement with you
revolves around the same principle: that it's important to be able to
treat types uniformly.

Cheers,

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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