sarray: allow copy construction
This commit is contained in:
parent
f3886d6089
commit
8f2d036123
@ -23,6 +23,12 @@ namespace cruft {
|
||||
template <std::size_t S, typename T>
|
||||
class sarray {
|
||||
public:
|
||||
//---------------------------------------------------------------------
|
||||
sarray (sarray const &rhs)
|
||||
: sarray (cruft::view (rhs))
|
||||
{ ; }
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
sarray (T const &data)
|
||||
: sarray<S,T> (&data, &data + 1)
|
||||
|
Loading…
Reference in New Issue
Block a user