Just find your way around the templates, so I tried a few things.
Let me know what I'm doing wrong here.
I am trying to overload the virtual method of inherited patterns.
// class templates
`
This gives an error:
function.cpp: In function 'int main()': function.cpp:35: error: no matching function for call to 'next<double, float>::next(double, double)' function.cpp:25: note: candidates are: next<double, float>::next() function.cpp:25: note: next<double, float>::next(const next<double, float>&)
If this is not the right way, then some template inheritance information will be great
source share