Here is a source code I am trying to compile:
http://www.copypastecode.com/71129/
I get following errors:
zad9.cpp:93:39: error: no matching function for call to ‘sumuj(std::vector<Point<int> >::iterator, std::vector<Point<int> >::iterator)’
zad9.cpp:95:41: error: no matching function for call to ‘sumuj(std::vector<Point<int> >::iterator, std::vector<Point<int> >::iterator)’
zad9.cpp:102:55: error: no matching function for call to ‘sumuj(std::vector<Point<float> >::iterator, std::vector<Point<float> >::iterator)’
For me these functions fit perfectly to calling syntax :(
Calling sumuj(1,2) generates errors but matches template function!
Do you have any idea why (1,2) matches but std::vector<Point<int> >::iterator, std::vector<Point<int> >::iterator) don't ?
If you have any suggestions not connected with error how to improve my code it will be very appreciated.
P.S. This is excercise on abstract programming classes(traits and policy in c++).