Skip to content

Commit cdae97a

Browse files
uyhakris-jusiak
authored andcommitted
add constexpr specifier
1 parent b09ccaa commit cdae97a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/sml.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ struct transition<state<S2>, transition_eg<front::event<E>, G>>
24432443
constexpr transition(const state<S2> &, const transition_eg<front::event<E>, G> &t)
24442444
: transition<state<internal>, state<S2>, front::event<E>, G, none>{t.g, none{}} {}
24452445
template <class T>
2446-
auto operator=(const T &) const {
2446+
constexpr auto operator=(const T &) const {
24472447
return transition<T, state<S2>, front::event<E>, G, none>{g, none{}};
24482448
}
24492449
};
@@ -2460,7 +2460,7 @@ struct transition<state<S2>, transition_ea<front::event<E>, A>>
24602460
constexpr transition(const state<S2> &, const transition_ea<front::event<E>, A> &t)
24612461
: transition<state<internal>, state<S2>, front::event<E>, always, A>{always{}, t.a} {}
24622462
template <class T>
2463-
auto operator=(const T &) const {
2463+
constexpr auto operator=(const T &) const {
24642464
return transition<T, state<S2>, front::event<E>, always, A>{always{}, a};
24652465
}
24662466
};

0 commit comments

Comments
 (0)