#include <iostream>
template <typename T>
constexpr T t{};
int main() {
std::cout << &t<int> << 'n';
std::cout << &t<double> << 'n';
return 0;
}
error message
this is my config in Windows 11:
gcc
vscode tasks
But when I compiled it with the Compiler Explorer, it was correct. I’m confused. Thanks!
New contributor
Ly_Bin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.