From b5a94875e785b98bd4ee786182a1e38f0de8bfa8 Mon Sep 17 00:00:00 2001 From: Philippe Canal <pcanal@fnal.gov> Date: Thu, 15 May 2008 21:16:34 +0000 Subject: [PATCH] Use as the name of the template argument of the templated member function a symbol that is _not_ also the name of a function in order to avoid a fatal confusion in order compilers (gcc 3.3) git-svn-id: http://root.cern.ch/svn/root/trunk@23871 27541ba8-7e3a-0410-8455-c3a389f83636 --- math/minuit2/inc/Minuit2/ABProd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/math/minuit2/inc/Minuit2/ABProd.h b/math/minuit2/inc/Minuit2/ABProd.h index b5298b3c966..fb28a53479f 100644 --- a/math/minuit2/inc/Minuit2/ABProd.h +++ b/math/minuit2/inc/Minuit2/ABProd.h @@ -26,8 +26,8 @@ private: ABProd& operator=(const ABProd&) {return *this;} - template<class A, class B> - ABProd& operator=(const ABProd<A,B>&) {return *this;} + template<class MI1, class MI2> + ABProd& operator=(const ABProd<MI1,MI2>&) {return *this;} public: @@ -37,8 +37,8 @@ public: ABProd(const ABProd& prod) : fA(prod.fA), fB(prod.fB) {} - template<class A, class B> - ABProd(const ABProd<A,B>& prod) : fA(M1(prod.fA)), fB(M2(prod.fB)) {} + template<class MI1, class MI2> + ABProd(const ABProd<MI1,MI2>& prod) : fA(M1(prod.fA)), fB(M2(prod.fB)) {} const M1& A() const {return fA;} const M2& B() const {return fB;} -- GitLab