Skip to content

Commit

Permalink
⬆️ [release] v1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-jusiak committed Sep 7, 2022
1 parent e051103 commit 23e9a24
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ send: 42
* [Plant UML Integration](https://boost-ext.github.io/sml/examples.html#plant-uml-integration)
* [FAQ](https://boost-ext.github.io/sml/faq.html)
* [CHANGELOG](https://boost-ext.github.io/sml/CHANGELOG.html)
* [[1.1.6] - 2022-09-07](https://boost-ext.github.io/sml/CHANGELOG.html#116-2022-09-07)
* [[1.1.5] - 2022-03-23](https://boost-ext.github.io/sml/CHANGELOG.html#115-2022-03-23)
* [[1.1.4] - 2021-02-16](https://boost-ext.github.io/sml/CHANGELOG.html#114-2021-02-16)
* [[1.1.3] - 2020-08-02](https://boost-ext.github.io/sml/CHANGELOG.html#113-2020-08-02)
Expand Down
16 changes: 15 additions & 1 deletion doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
## [1.1.6] - 2022-09-07
- **Bug Fixes**
- [Issues](https://github.com/boost-ext/sml/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+closed%3A2022-03-23..2020-09-07+)
>
- **Contributions**
- [Ladislas de Toldi](https://github.com/ladislas)

## [1.1.5] - 2022-03-23
- **Additions**
- **Bug Fixes**
- [Issues](https://github.com/boost-ext/sml/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+closed%3A2021-02-16..2022-03-23+)

## [1.1.4] - 2021-02-16
- **Additions**
- LICENSE file

- **Bug Fixes**
- [Issues](https://github.com/boost-ext/sml/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+closed%3A2020-08-02..2021-02-16+)

## [1.1.3] - 2020-08-02
- **Additions**
- Support for member-function like guards/actions
Expand Down Expand Up @@ -86,6 +97,9 @@
##[1.0.0] - 2016-01-28
- Initial version

[1.1.6]: https://github.com/boost-ext/sml/compare/v1.1.5...v1.1.6
[1.1.5]: https://github.com/boost-ext/sml/compare/v1.1.4...v1.1.5
[1.1.5]: https://github.com/boost-ext/sml/compare/v1.1.4...v1.1.5
[1.1.4]: https://github.com/boost-ext/sml/compare/v1.1.3...v1.1.4
[1.1.3]: https://github.com/boost-ext/sml/compare/v1.1.2...v1.1.3
[1.1.2]: https://github.com/boost-ext/sml/compare/v1.1.1...v1.1.2
Expand Down
16 changes: 11 additions & 5 deletions include/boost/sml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#if (__cplusplus < 201305L && _MSC_VER < 1900)
#error "[Boost::ext].SML requires C++14 support (Clang-3.4+, GCC-5.1+, MSVC-2015+)"
#else
#define BOOST_SML_VERSION 1'1'5
#define BOOST_SML_VERSION 1'1'6
#define BOOST_SML_NAMESPACE_BEGIN \
namespace boost { \
inline namespace ext { \
namespace sml { \
inline namespace v1_1_5 {
inline namespace v1_1_6 {
#define BOOST_SML_NAMESPACE_END \
} \
} \
Expand Down Expand Up @@ -1426,7 +1426,7 @@ struct sm_impl : aux::conditional_t<aux::is_empty<typename TSM::sm>::value, aux:
__BOOST_SML_REQUIRES(!aux::is_base_of<get_generic_t<TEvent>, events_ids_t>::value &&
!aux::is_base_of<get_mapped_t<TEvent>, events_ids_t>::value &&
!aux::is_same<get_event_t<TEvent>, initial>::value)>
bool process_internal_events(const TEvent&, TDeps &, TSubs &, Ts &&...) {
bool process_internal_events(const TEvent &, TDeps &, TSubs &, Ts &&...) {
return false;
}
template <class TEvent, class TDeps, class TSubs, class... Ts,
Expand Down Expand Up @@ -1720,7 +1720,7 @@ class sm {
aux::get<sm_impl<TSM>>(sub_sms_).start(deps_, sub_sms_);
}
template <class... TDeps, __BOOST_SML_REQUIRES((sizeof...(TDeps) > 1) && aux::is_unique_t<TDeps...>::value)>
explicit sm(TDeps &&...deps) : deps_{aux::init{}, aux::pool<TDeps...>{deps...}}, sub_sms_{aux::pool<TDeps...>{deps...}} {
explicit sm(TDeps &&... deps) : deps_{aux::init{}, aux::pool<TDeps...>{deps...}}, sub_sms_{aux::pool<TDeps...>{deps...}} {
aux::get<sm_impl<TSM>>(sub_sms_).start(deps_, sub_sms_);
}
sm(aux::init, deps_t &deps) : deps_{deps}, sub_sms_{deps} { aux::get<sm_impl<TSM>>(sub_sms_).start(deps_, sub_sms_); }
Expand Down Expand Up @@ -1750,7 +1750,13 @@ class sm {
using sm_impl_t = sm_impl<typename TSM::template rebind<type>>;
using state_t = typename sm_impl_t::state_t;
using states_ids_t = typename sm_impl_t::states_ids_t;
return aux::get_id<state_t, typename TState::type>((states_ids_t *)0) == aux::cget<sm_impl_t>(sub_sms_).current_state_[0];
auto result = false;
visit_current_states<T>([&](auto state) {
(void)state;
result |= (aux::get_id<state_t, typename TState::type>((states_ids_t *)0) ==
aux::get_id<state_t, typename decltype(state)::type>((states_ids_t *)0));
});
return result;
}
template <class T = aux::identity<sm_t>, template <class...> class TState>
bool is(const TState<terminate_state> &) const {
Expand Down

0 comments on commit 23e9a24

Please sign in to comment.