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

0

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

iknacx

1 Answer

New Answer

+2

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