Does your compiler's error message point any particular column of the offending line? I don't recall seeing a compiler that would only say: "not ok".
Line 12: template <class xxx> xxx calc<xxx>::calc(xxx c, xxx d) : a(c), b(d) {}
Line 17/18: calc<int> obj... // Note: You need to provide the template type
Hello!
Please, I tried with normal form of function (not-inline), then I got the result.
I thought, inline function IN THE CLASS, if declared as PUBLIC, IS in the scope.
Do I loose it from the scope if I declare it inline within the class, even if it is public?
Many thanks, compeltely confused at the moment!