|
Boost : |
Subject: [boost] [array] assignment and constructor coherency
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-06-17 13:03:42
Hi,
Boost.Array defines the following assignment
template (* typename U *)
array(* T,N *)& operator=(const array(* U, N *)&);
as
std::copy(rhs.begin(),rhs.end(), begin())
Even if the standard doesn't provides this conversion assignment, for
coherency purposes, shouldn't we have also the copy constructor
template (* typename U *)
explicit array(* T,N *)(const array(* U, N *)&);
Best,
Vicente
P.S. Please replace (* and *) by angle brackets.
-- View this message in context: http://boost.2283326.n4.nabble.com/array-assignment-and-constructor-coherency-tp3605912p3605912.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk