mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
removed deprecated capture-by-reference closures
This commit is contained in:
parent
5ccba54335
commit
5a0a88526e
20 changed files with 59 additions and 1220 deletions
|
@ -29,7 +29,7 @@ CPPLambdaFunc::CPPLambdaFunc(string _name, FuncTypePtr ft, CPPStmtPtr _l_body)
|
|||
l_body = move(_l_body);
|
||||
}
|
||||
|
||||
broker::expected<broker::data> CPPLambdaFunc::SerializeClosure() const
|
||||
broker::expected<broker::data> CPPLambdaFunc::SerializeCaptures() const
|
||||
{
|
||||
auto vals = l_body->SerializeLambdaCaptures();
|
||||
|
||||
|
|
|
@ -85,11 +85,9 @@ class CPPLambdaFunc : public ScriptFunc
|
|||
public:
|
||||
CPPLambdaFunc(std::string name, FuncTypePtr ft, CPPStmtPtr l_body);
|
||||
|
||||
bool HasCopySemantics() const override { return true; }
|
||||
|
||||
protected:
|
||||
// Methods related to sending lambdas via Broker.
|
||||
broker::expected<broker::data> SerializeClosure() const override;
|
||||
broker::expected<broker::data> SerializeCaptures() const override;
|
||||
void SetCaptures(Frame* f) override;
|
||||
|
||||
FuncPtr DoClone() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue