Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed #603: not all zero_wrapper define a get() method, which breaks logging in some cases #613

Merged

Conversation

devzeb
Copy link
Contributor

@devzeb devzeb commented Mar 7, 2024

Problem:

#603 demonstrates the problem.
A compile error occurs when trying to use a logger in a statemachine, that uses both a process_queue and a member function pointer as an action.

The error message states:
'get': is not a member of 'boost::ext::sml::v1_1_9::aux::zero_wrapper<T,void>'

Solution:

I implemented the member function get() for all specializations of zero_wrapper.
Also I added a test for this use case in policies_logging.cpp.

Issue: #603

@kris-jusiak kris-jusiak merged commit 7581bc1 into boost-ext:master Mar 7, 2024
5 checks passed
@kris-jusiak
Copy link
Collaborator

Good catch, thank you @devzeb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants