#270 Given the following in C++
template <typename T>
void f(T);
void g() {
f<int>(1);
f<void>(); // Well-formed? f now takes zero arguments?
}
Without checking:
A. Yes
B. No
C. Show results
A
B
C
Poll ended at .
#270 Given the following in C++
template <typename T>
void f(T);
void g() {
f<int>(1);
f<void>(); // Well-formed? f now takes zero arguments?
}
Without checking:
A. Yes
B. No
C. Show results
Answer is B
No see https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#577