region: remove array constructor
the meaning of the array values weren't particularly clear. are they point-point, point-extent, something else? also the implementation was horribly incorrect for whatever it claimed to be doing. so we remove the function entirely to avoid the aforementioned ambiguity.
This commit is contained in:
parent
a27869d1c8
commit
db5795c25a
@ -54,15 +54,6 @@ util::region<S,T>::region (point_t _a,
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <size_t S, typename T>
|
||||
util::region<S,T>::region (std::array<T,S*2> args)
|
||||
{
|
||||
std::copy (&args[0], &args[S], p.data);
|
||||
std::copy (&args[S], &args[S*2], e.data);
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <size_t S, typename T>
|
||||
T
|
||||
|
@ -48,7 +48,6 @@ namespace util {
|
||||
explicit region (extent_t);
|
||||
region (point_t, extent_t);
|
||||
region (point_t, point_t);
|
||||
explicit region (std::array<T,S*2>);
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
template <typename U>
|
||||
|
Loading…
Reference in New Issue
Block a user