Skip to content

Commit da0aba7

Browse files
Merge pull request #164 from tyxia/activation
Make BaseActivation class move-constructible/assignable
2 parents 42c7d1b + ea339f1 commit da0aba7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eval/public/base_activation.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class BaseActivation {
2121
BaseActivation(const BaseActivation&) = delete;
2222
BaseActivation& operator=(const BaseActivation&) = delete;
2323

24+
// Move-constructible/move-assignable
25+
BaseActivation(BaseActivation&& other) = default;
26+
BaseActivation& operator=(BaseActivation&& other) = default;
27+
2428
// Return a list of function overloads for the given name.
2529
virtual std::vector<const CelFunction*> FindFunctionOverloads(
2630
absl::string_view) const = 0;
@@ -49,7 +53,7 @@ class BaseActivation {
4953
return *empty;
5054
}
5155

52-
virtual ~BaseActivation() {}
56+
virtual ~BaseActivation() = default;
5357
};
5458

5559
} // namespace google::api::expr::runtime

0 commit comments

Comments
 (0)