From f7f84ef6b8270ea4f743a6273e628c54fc3df2f8 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 16 Feb 2015 23:35:19 +1100 Subject: [PATCH] region: add dimension and value_type constants for interoperability with vector and point classes --- region.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/region.hpp b/region.hpp index b8509555..b6646cf8 100644 --- a/region.hpp +++ b/region.hpp @@ -34,6 +34,9 @@ namespace util { typedef T position_type; typedef T size_type; + static constexpr size_t dimension = 2u; + typedef T value_type; + position_type x, y; size_type w, h;