Skip to content

Commit

Permalink
fix: no support for user-defined literals
Browse files Browse the repository at this point in the history
  • Loading branch information
KRAB authored and kris-jusiak committed May 30, 2024
1 parent 7129315 commit 57f2daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/boost/sml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#define __BOOST_SML_DEFINED_HAS_BUILTIN
#define __has_builtin(...) 0
#endif
/* Needs IAR language extensions */
#define __BOOST_SML_UNUSED __attribute__((unused))
#define __BOOST_SML_VT_INIT \
{}
Expand Down Expand Up @@ -2842,6 +2843,7 @@ constexpr typename front::state_sm<T>::type state{};
template <class T>
typename front::state_sm<T>::type state __BOOST_SML_VT_INIT;
#endif
#if !(defined(__ICCARM__))
inline namespace literals {
#if defined(__cpp_nontype_template_parameter_class) || \
defined(__cpp_nontype_template_args) && __cpp_nontype_template_args >= 201911L
Expand All @@ -2866,6 +2868,7 @@ constexpr auto operator""_e() {
}
#endif
} // namespace literals
#endif
__BOOST_SML_UNUSED static front::state<back::terminate_state> X;
__BOOST_SML_UNUSED static front::history_state H;
__BOOST_SML_UNUSED static front::actions::defer defer;
Expand Down

0 comments on commit 57f2daa

Please sign in to comment.