Add method for removing redundant nodes#571
Open
arcondello wants to merge 27 commits into
Open
Conversation
4dab596 to
a8040b8
Compare
a8040b8 to
82cc356
Compare
56195c1 to
57638a8
Compare
In C++20 Node::operator==(const Node&) const is amibiguous because either order is valid.
39fb39d to
055fe62
Compare
ee71c02 to
770a9cb
Compare
This requires some fiddling, see https://isocpp.org/wiki/faq/templates#nondependent-name-lookup-members for the why.
arcondello
commented
Jul 3, 2026
| double max() const override; | ||
|
|
||
| using ArrayOutputMixin::shape; | ||
| using ArrayOutputMixin<EqualityMixin<ArrayNode, BinaryOpNode<BinaryOp>>>::shape; |
Member
Author
There was a problem hiding this comment.
See the commit message for 5b213bc
This requires some fiddling, see
https://isocpp.org/wiki/faq/templates#nondependent-name-lookup-members
for the why.
261d2d6 to
98e4bd0
Compare
98e4bd0 to
47e1be7
Compare
90386b6 to
cd107a0
Compare
arcondello
commented
Jul 6, 2026
| virtual bool equal_to(const Derived& rhs) const = 0; | ||
| }; | ||
|
|
||
| /// Overload for EqualityMixin that does not require a class-specific equal_to() |
Member
Author
There was a problem hiding this comment.
A doubt I have is whether these two overloads are different enough that they should actually be given different names 🤔
42a0edd to
f7a75d1
Compare
arcondello
commented
Jul 9, 2026
4e887e4 to
f643bca
Compare
Member
Author
|
As a note: I didn't try to be inclusive about the |
arcondello
commented
Jul 10, 2026
212caf4 to
d0dd3d3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #563
AI Generation Disclosure
No AI used.