From d738fc4a0ee3a9572754b79b09c8a51609ad33a5 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 15 Jul 2014 19:50:49 +1000 Subject: [PATCH] matrix: instantiate template in host namespace Fixes warnings under clang --- matrix.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matrix.cpp b/matrix.cpp index 4a168202..88aef283 100644 --- a/matrix.cpp +++ b/matrix.cpp @@ -175,9 +175,10 @@ matrix::ZEROES = { { { 0, 0, 0, 0 }, //----------------------------------------------------------------------------- -template struct matrix; -template struct matrix; - +namespace util { + template struct matrix; + template struct matrix; +} //----------------------------------------------------------------------------- template