Skip to content

Commit

Permalink
auto: ensure the target transition type is expected
Browse files Browse the repository at this point in the history
  • Loading branch information
multun committed Jul 9, 2018
1 parent fa3586b commit a0f380d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto.hh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Auto {
auto enter(Args&& ...args) {
// TODO: move this assert at class construction time
static_assert(std::is_base_of<intf_t, State<self_t>>::value);
// static_assert(map_pack_contains<self_t, State, States...>());
static_assert(tlist::template contains<State<self_t>>());
return new (&state_data_) State<self_t>(std::forward(args)...);
}

Expand Down

0 comments on commit a0f380d

Please sign in to comment.