diff --git a/region.cpp b/region.cpp index 85946fb5..528e6055 100644 --- a/region.cpp +++ b/region.cpp @@ -49,9 +49,7 @@ region::region (T _x, T _y, size_type _w, size_type _h): y (_y), w (_w), h (_h) -{ - DEBUG_ONLY (sanity ()); -} +{ ; } //----------------------------------------------------------------------------- @@ -204,8 +202,8 @@ region::operator== (const region& rhs) const template void region::sanity (void) const { - CHECK_SOFT (w > 0); - CHECK_SOFT (h > 0); + CHECK_GE (w, 0); + CHECK_GE (h, 0); static_assert(!std::is_floating_point::value, "Floating point types need width and height checks"); }