mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Switch FuncType capture-list storage to optional<vector<Capture>>
May help clarify overall mem-mgmt/ownership semantics.
This commit is contained in:
parent
ab15a98b28
commit
b08112b2e7
8 changed files with 44 additions and 41 deletions
|
@ -405,8 +405,7 @@ struct val_converter {
|
|||
if ( ! b )
|
||||
return nullptr;
|
||||
|
||||
auto copy_semantics =
|
||||
b->GetType()->GetCaptures() != nullptr;
|
||||
auto copy_semantics = b->GetType()->GetCaptures().has_value();
|
||||
|
||||
if ( copy_semantics )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue