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

state_t's on_enter/on_exit should accept noexcept methods #11

Closed
eao197 opened this issue Jun 1, 2020 · 1 comment
Closed

state_t's on_enter/on_exit should accept noexcept methods #11

eao197 opened this issue Jun 1, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@eao197
Copy link
Member

eao197 commented Jun 1, 2020

For example:

class my_agent : public so_5::agent_t {
  state_t st_normal{ this };
  ...
  void on_enter_st_normal() noexcept {...}
  ...
  void so_define_agent() override {
    st_normal.on_enter(&my_agent::on_enter_st_normal); // (1)
    ...
  }
};

Now the compilation fails at point (1) because in C++17 noexcept is a part of the method signature and that case is not handled in SObjectizer's is_agent_method_pointer metafunction.

@eao197 eao197 added the bug Something isn't working label Jun 1, 2020
@eao197 eao197 self-assigned this Jun 1, 2020
eao197 added a commit that referenced this issue Jun 1, 2020
@eao197
Copy link
Member Author

eao197 commented Jun 22, 2020

Fixed in v.5.7.1.

@eao197 eao197 closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant