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:
Danny Robson 2017-07-19 17:19:37 +10:00
parent a27869d1c8
commit db5795c25a
2 changed files with 0 additions and 10 deletions

View File

@ -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

View File

@ -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>