From 86d35bf903a6d63387548bf932271cd49023732a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 17 Nov 2016 18:43:32 +1100 Subject: [PATCH] debug: explicitly instantiate extent/point validator --- extent.cpp | 3 ++- point.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/extent.cpp b/extent.cpp index bfde732a..7c0b0b10 100644 --- a/extent.cpp +++ b/extent.cpp @@ -201,7 +201,8 @@ namespace util::debug { //----------------------------------------------------------------------------- #define INSTANTIATE_S_T(S,T) \ template struct util::extent; \ -template bool util::debug::is_valid (const extent&); +template bool util::debug::is_valid (const extent&); \ +template struct util::debug::validator>; #define INSTANTIATE(T) \ INSTANTIATE_S_T(1,T) \ diff --git a/point.cpp b/point.cpp index 65facddd..5a9e62b1 100644 --- a/point.cpp +++ b/point.cpp @@ -61,6 +61,7 @@ namespace util::debug { }; } + //----------------------------------------------------------------------------- template const util::point util::point::ORIGIN (T {0}); @@ -68,7 +69,8 @@ const util::point util::point::ORIGIN (T {0}); //----------------------------------------------------------------------------- #define INSTANTIATE_S_T(S,T) \ template struct util::point; \ -template bool util::debug::is_valid (const point&); +template bool util::debug::is_valid (const point&); \ +template struct util::debug::validator>; #define INSTANTIATE(T) \ INSTANTIATE_S_T(1,T) \