We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f46e42 commit 35c2c2dCopy full SHA for 35c2c2d
1 file changed
test/rvariant/truly_recursive_test.cpp
@@ -143,9 +143,19 @@ struct NodeArray;
143
144
using Node = iris::rvariant<int, iris::recursive_wrapper<NodeArray>>;
145
146
-struct NodeArray : std::vector<Node>
+struct NodeArray
147
{
148
- using std::vector<Node>::vector;
+ std::vector<Node> nodes;
149
+
150
+ bool operator==(NodeArray const& other) const
151
+ {
152
+ return nodes == other.nodes;
153
+ }
154
155
+ auto operator<=>(NodeArray const& other) const
156
157
+ return nodes <=> other.nodes;
158
159
};
160
161
} // anonymous
0 commit comments