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

so_set_delivery_filter and lvalue references #50

Closed
eao197 opened this issue Aug 19, 2022 · 1 comment
Closed

so_set_delivery_filter and lvalue references #50

eao197 opened this issue Aug 19, 2022 · 1 comment
Assignees

Comments

@eao197
Copy link
Member

eao197 commented Aug 19, 2022

It seems that this code can't be compiled with the current version of SObjectizer:

void so_define_agent() override {
  auto filter = [](const some_message &) { return true; };
  so_set_delivery_filter(mbox, filter);
}

because so_set_delivery_filter expects a rvalue reference to lambda-function.

Maybe it's necessary to fix so_set_delivery_filter to allow acceptance of lvalue references (const and non-const)?

@eao197 eao197 self-assigned this Aug 19, 2022
eao197 added a commit that referenced this issue Aug 20, 2022
@eao197
Copy link
Member Author

eao197 commented Aug 22, 2022

Fixed in v.5.7.4.2.

@eao197 eao197 closed this as completed Aug 22, 2022
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

No branches or pull requests

1 participant