You are defining a templated operator overload, but not declaring it templated inside the class definition.
Change to:
Code:template <typename TT> friend Int<TT> operator +(const Int<TT>&, const Int<TT>&);
You are defining a templated operator overload, but not declaring it templated inside the class definition.
Change to:
Code:template <typename TT> friend Int<TT> operator +(const Int<TT>&, const Int<TT>&);
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.