| 30 | |
| 31 | public: |
| 32 | BinaryNode(common::Node_ptr lhs, common::Node_ptr rhs) |
| 33 | : TNode<compute_t<To>>(compute_t<To>(0), |
| 34 | std::max(lhs->getHeight(), rhs->getHeight()) + 1, |
| 35 | {{lhs, rhs}}, common::kNodeType::Nary) {} |
| 36 | |
| 37 | std::unique_ptr<common::Node> clone() final { |
| 38 | return std::make_unique<BinaryNode>(*this); |