#include <iostream> struct t{ const std::size_t value = 10; }; int main(){ std::cout << t::value << std::endl; return 0; }
Standard input is empty
prog.cpp:3:37: error: ISO C++ forbids initialization of member 'value' prog.cpp:3:37: error: making 'value' static
Standard output is empty