Unnecessary template arguments?? | Sololearn: Learn to code for FREE!


Unnecessary template arguments??

Why sometimes I don't have to specify the template argument in the sololearn's editor, and the same code in terminal throes an error??

8/4/2019 3:37:18 AM


1 Answer

New Answer


iknaxzîo The only reason i can think of different compiler version supporting different C++ standard. Sololearn's compiler is g++ 7+ and supports C++17. C++17 has better support for auto deducing template arguments types than C++14