region: remove extent only constructor

This commit is contained in:
Danny Robson 2021-06-01 13:14:31 +10:00
parent 9109ff6e66
commit 09d83b1b8a
2 changed files with 2 additions and 10 deletions

View File

@ -18,15 +18,6 @@
using cruft::region; using cruft::region;
//-----------------------------------------------------------------------------
template <size_t S, typename T>
cruft::region<S,T>::region (extent_t _extent):
region (point_t::origin (), _extent)
{
CHECK_SANITY (*this);
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <size_t S, typename T> template <size_t S, typename T>
cruft::region<S,T>::region (point_t _p, cruft::region<S,T>::region (point_t _p,

View File

@ -34,12 +34,13 @@ namespace cruft {
point_t p; point_t p;
extent_t e; extent_t e;
//--------------------------------------------------------------------- //---------------------------------------------------------------------
region () = default; region () = default;
explicit region (extent_t);
region (point_t, extent_t); region (point_t, extent_t);
region (point_t, point_t); region (point_t, point_t);
//--------------------------------------------------------------------- //---------------------------------------------------------------------
template <typename U> template <typename U>
constexpr region<S,U> constexpr region<S,U>