#include <iostream>#include <tuple> class T{ public: using Names = std::tuple<char const*, char const*>; constexpr static Names names {"First", "Second"};}; int main(){ std::cout << std::get<0>(T::names);}
Standard input is empty
/home/mWhCzK/cc4E5zja.o: In function `main': prog.cpp:(.text.startup+0x13): undefined reference to `T::names' collect2: error: ld returned 1 exit status
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!