mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'origin/topic/vern/remove-deprecated-closures'
* origin/topic/vern/remove-deprecated-closures: removed deprecated capture-by-reference closures
This commit is contained in:
commit
9e953f50cb
22 changed files with 64 additions and 1221 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