From 6c979174ee28c8be40595798880bdabc2f3e7e9d Mon Sep 17 00:00:00 2001
From: Jesper Andersson <jesper@fmrib.ox.ac.uk>
Date: Wed, 3 Oct 2012 11:42:09 +0000
Subject: [PATCH] fixed bug that prevented it from compiling

---
 SpMat.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/SpMat.h b/SpMat.h
index 9e1cd8a..164b4ed 100644
--- a/SpMat.h
+++ b/SpMat.h
@@ -1009,12 +1009,14 @@ const SpMat<T> operator&(const SpMat<T>& th, const NEWMAT::GeneralMatrix& bh)
 //
 /////////////////////////////////////////////////////////////////////
 
+template<class T>
 const std::vector<unsigned int>& SpMat<T>::get_ri(unsigned int i) const
 {
   if (i >= _n) throw SpMatException("SpMat::get_ri: Index out of range");
   return(_ri[i]);
 }
 
+template<class T>
 const std::vector<T>& SpMat<T>::get_val(unsigned int i) const
 {
   if (i >= _n) throw SpMatException("SpMat::get_val: Index out of range");
-- 
GitLab