From 6569ee014f2f83894f069bc7da1316dfe8168bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20P=C3=A9nuchot?= Date: Thu, 7 Feb 2019 00:32:54 +0100 Subject: [PATCH] Updated main --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index ab1088d..891a684 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -75,5 +76,13 @@ int main() return 0; }, 2); + using test_t = enum_t; + test_t::static_switch_over( 2 + , []() { cout << "1\n"; } + , []() { cout << "2\n"; } + , []() { cout << "3\n"; } + , []() { cout << "4\n"; } + ); + return 0; }