debug: explicitly instantiate extent/point validator

This commit is contained in:
Danny Robson 2016-11-17 18:43:32 +11:00
parent 6a8b78cdd7
commit 86d35bf903
2 changed files with 5 additions and 2 deletions

View File

@ -201,7 +201,8 @@ namespace util::debug {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#define INSTANTIATE_S_T(S,T) \ #define INSTANTIATE_S_T(S,T) \
template struct util::extent<S,T>; \ template struct util::extent<S,T>; \
template bool util::debug::is_valid (const extent<S,T>&); template bool util::debug::is_valid (const extent<S,T>&); \
template struct util::debug::validator<extent<S,T>>;
#define INSTANTIATE(T) \ #define INSTANTIATE(T) \
INSTANTIATE_S_T(1,T) \ INSTANTIATE_S_T(1,T) \

View File

@ -61,6 +61,7 @@ namespace util::debug {
}; };
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <size_t S, typename T> template <size_t S, typename T>
const util::point<S,T> util::point<S,T>::ORIGIN (T {0}); const util::point<S,T> util::point<S,T>::ORIGIN (T {0});
@ -68,7 +69,8 @@ const util::point<S,T> util::point<S,T>::ORIGIN (T {0});
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#define INSTANTIATE_S_T(S,T) \ #define INSTANTIATE_S_T(S,T) \
template struct util::point<S,T>; \ template struct util::point<S,T>; \
template bool util::debug::is_valid (const point<S,T>&); template bool util::debug::is_valid (const point<S,T>&); \
template struct util::debug::validator<point<S,T>>;
#define INSTANTIATE(T) \ #define INSTANTIATE(T) \
INSTANTIATE_S_T(1,T) \ INSTANTIATE_S_T(1,T) \