|
Boost : |
From: Darin Adler (darin_at_[hidden])
Date: 2001-09-06 13:55:43
on 9/6/01 11:17 AM, rwgk_at_[hidden] at rwgk_at_[hidden] wrote:
> The template class boost:array (array.hpp) does not
> include constructors. However, I believe that it would
> be useful to provide a constructor like:
>
> array(const T& value) { assign(value); }
>
> Then we would also need a default constructor:
>
> array() {}
>
> Are there possible side-effects when adding these
> constructors that I do not know about? If not, could
> these be added?
The author considered the issue of whether to provide constructors and
decided not to. His thinking is detailed at:
<http://www.josuttis.com/cppcode/array.html>
-- Darin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk