-
Notifications
You must be signed in to change notification settings - Fork 919
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
Migrated Dynamic AST Expression Trees in Benchmarks and Tests to use AST Tree #17697
base: branch-25.02
Are you sure you want to change the base?
Conversation
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
…ee and made ast tree use unique_ptr in place of shared_ptr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice cleanup, thanks!
@@ -588,12 +588,11 @@ class tree { | |||
* @returns a reference to the added expression | |||
*/ | |||
template <typename Expr, typename... Args> | |||
Expr const& emplace(Args&&... args) | |||
std::enable_if_t<std::is_base_of_v<expression, Expr>, Expr const&> emplace(Args&&... args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this just tightening up requirements for better error-handling? Did you run into a specific problem without this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was just tightening up requirements for better error-handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally find adding a static_assert
check in this case can achieve the same goal while offering clearer error information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks fine to me. Thanks!
Co-authored-by: Bradley Dice <[email protected]>
Description
Follows-up and closes #17400.
This merge cleans up some of the ast tree expressions in CUDF's benchmarks and tests, specifically the dynamically constructed ones.
The other existing AST trees/expressions in the tests and benchmarks are linear and without complicated lifetimes.
Checklist