Compiler error when using variable templates?
#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! c++ c++14 variable-templates New […]