enum class Flag:int{
NONE,
TEST_FLAG1,
TEST_FLAG2,
TEST_FLAG3,
};
template <typename Enumeration>
auto toint(Enumeration const value) -> typename std::underlying_type<Enumeration>::type
{
return static_cast<typename std::underlying_type<Enumeration>::type>(value);
}