main.cpp: In function 'int main()':
main.cpp:33:37: error: no matching function for call to 'CreateFigure(std::istringstream&)'
figures.push_back(CreateFigure(is));
^
In file included from main.cpp:17:0:
figure.h:57:6: note: candidate: template<class T> auto CreateFigure(std::istringstream&)
auto CreateFigure(std::istringstream& is) {
^~~~~~~~~~~~
figure.h:57:6: note: template argument deduction/substitution failed:
main.cpp:33:37: note: couldn't deduce template parameter 'T'
figures.push_back(CreateFigure(is));
^
|