Skip to content

so_set_delivery_filter and lvalue references #50

@eao197

Description

@eao197

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)?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions