region: forward is_valid to component point and extent

This commit is contained in:
Danny Robson 2016-10-25 19:59:06 +11:00
parent 17423ca1c7
commit 249f8adfed

View File

@ -371,10 +371,7 @@ namespace util { namespace debug {
struct validator<util::region<S,T>> {
static bool is_valid (const util::region<S,T> &r)
{
CHECK_GE (r.area (), T{0});
CHECK_GE (min (r.e), T{0});
return r.area () >= 0 && min (r.e) >= 0;
return util::debug::is_valid (r.p) && util::debug::is_valid (r.e);
}
};
} }