In file included from /usr/include/c++/4.9/type_traits:35:0,
from prog.cpp:5:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
prog.cpp:12:5: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class State
^
prog.cpp:33:27: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
State mState = State::MAIN_MENU;
^
prog.cpp:33:20: error: 'State' is not a class or namespace
State mState = State::MAIN_MENU;
^
prog.cpp: In function 'Game::State operator|(Game::State, Game::State)':
prog.cpp:39:11: error: expected nested-name-specifier before 'type'
using type = std::underlying_type<Game::State>::type;
^
prog.cpp:40:49: error: 'type' does not name a type
return static_cast<Game::State>(static_cast<type>(lhs) | static_cast<type>(rhs));
^
prog.cpp:40:74: error: 'type' does not name a type
return static_cast<Game::State>(static_cast<type>(lhs) | static_cast<type>(rhs));
^
prog.cpp: In function 'Game::State operator&(Game::State, Game::State)':
prog.cpp:45:11: error: expected nested-name-specifier before 'type'
using type = std::underlying_type<Game::State>::type;
^
prog.cpp:46:49: error: 'type' does not name a type
return static_cast<Game::State>(static_cast<type>(lhs) & static_cast<type>(rhs));
^
prog.cpp:46:74: error: 'type' does not name a type
return static_cast<Game::State>(static_cast<type>(lhs) & static_cast<type>(rhs));
^