diff --git a/region.hpp b/region.hpp index 60db6b95..44c2764a 100644 --- a/region.hpp +++ b/region.hpp @@ -111,10 +111,13 @@ namespace util { void sanity (void) const; }; - typedef region<2,unsigned> region2u; - typedef region<2,int> region2i; - typedef region<2,float> region2f; - typedef region<2,double> region2d; + template using region2 = region<2,T>; + template using region3 = region<3,T>; + + using region2u = region2; + using region2i = region2; + using region2f = region2; + using region2d = region2; template std::ostream& operator<< (std::ostream&, const util::region&);