Open correaa opened 1 year ago
It happens with function templates (not only with deduction gives) and is specific of init lists:
#include <vector>
template<class T>
void f(std::initializer_list<std::initializer_list<T>>) {}
int main() {
f({{1.0, 1.0}, {1.0, 1.0}});
}
https://godbolt.org/z/Mndo78cce (works on gcc and clang as far as I can tell)
Circle can't deduce nested template argument in init list:
https://godbolt.org/z/jc1bs937Y
This is the expected result (with gcc and clang): https://godbolt.org/z/6K4MYKMbx