Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make BaseActivation class move-constructible/assignable #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion eval/public/base_activation.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class BaseActivation {
BaseActivation(const BaseActivation&) = delete;
BaseActivation& operator=(const BaseActivation&) = delete;

// Move-constructible/move-assignable
BaseActivation(BaseActivation&& other) = default;
BaseActivation& operator=(BaseActivation&& other) = default;

// Return a list of function overloads for the given name.
virtual std::vector<const CelFunction*> FindFunctionOverloads(
absl::string_view) const = 0;
Expand Down Expand Up @@ -49,7 +53,7 @@ class BaseActivation {
return *empty;
}

virtual ~BaseActivation() {}
virtual ~BaseActivation() = default;
};

} // namespace google::api::expr::runtime
Expand Down