Skip to content
Snippets Groups Projects
Commit b5a94875 authored by Philippe Canal's avatar Philippe Canal
Browse files

Use as the name of the template argument of the templated member function a...

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
parent 1a71f91d
No related branches found
No related tags found
No related merge requests found
......@@ -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;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment