C++ Logo


Advanced search

Subject: Re: The standard does not specify when to supply default arguments as template arguments
From: jim x (xmh970252187_at_[hidden])
Date: 2020-07-16 11:16:32

Peter, it seems to the parameter is declared as if it likes Test<T,T>,
change the argument of the function call to Test<int,char>{}, The three
compiler all report the deduced T is conflicting , T = int vs T= char. So,
I wonder the compiler process Test<T> as Test<T, T>, according to the
outcome report.

STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups