mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
the "Capture" struct is now a class
This commit is contained in:
parent
528aa6766a
commit
b6464814c9
6 changed files with 24 additions and 8 deletions
|
@ -1301,7 +1301,7 @@ string CPPCompile::GenLambdaClone(const LambdaExpr* l, bool all_deep)
|
|||
if ( captures && ! IsNativeType(id_t) )
|
||||
{
|
||||
for ( const auto& c : *captures )
|
||||
if ( id == c.id && (c.deep_copy || all_deep) )
|
||||
if ( id == c.Id() && (c.IsDeepCopy() || all_deep) )
|
||||
arg = string("cast_intrusive<") + TypeName(id_t) + ">(" + arg + "->Clone())";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue