Skip to content

Commit

Permalink
Updated main
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Feb 6, 2019
1 parent 360759a commit 6569ee0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <tuple>
#include <array>

#include <jpp/enum.hpp>
#include <jpp/unroll.hpp>
#include <jpp/match_overload.hpp>
#include <jpp/parameter_pack_reduction.hpp>
Expand Down Expand Up @@ -75,5 +76,13 @@ int main()
return 0;
}, 2);

using test_t = enum_t<int, 1, 2, 3, 4>;
test_t::static_switch_over( 2
, []() { cout << "1\n"; }
, []() { cout << "2\n"; }
, []() { cout << "3\n"; }
, []() { cout << "4\n"; }
);

return 0;
}

0 comments on commit 6569ee0

Please sign in to comment.