mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +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
|
@ -699,6 +699,12 @@ TypePtr SetType::ShallowClone()
|
|||
|
||||
SetType::~SetType() = default;
|
||||
|
||||
FuncType::Capture::Capture(detail::IDPtr _id, bool _deep_copy)
|
||||
: id(std::move(_id)), deep_copy(_deep_copy)
|
||||
{
|
||||
is_managed = id ? ZVal::IsManagedType(id->GetType()) : false;
|
||||
}
|
||||
|
||||
FuncType::FuncType(RecordTypePtr arg_args, TypePtr arg_yield, FunctionFlavor arg_flavor)
|
||||
: Type(TYPE_FUNC), args(std::move(arg_args)), arg_types(make_intrusive<TypeList>()),
|
||||
yield(std::move(arg_yield))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue