Skip to content

Commit

Permalink
Add override.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesAuguste committed Aug 7, 2020
1 parent 4737b6c commit 2801b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treelearner/monotone_constraints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class BasicLeafConstraints : public LeafConstraintsBase {

const ConstraintEntry* Get(int leaf_idx) override { return entries_[leaf_idx]; }

FeatureConstraint* GetFeatureConstraint(int leaf_idx, int feature_index) {
FeatureConstraint* GetFeatureConstraint(int leaf_idx, int feature_index) final {
return entries_[leaf_idx]->GetFeatureConstraint(feature_index);
}

Expand Down

0 comments on commit 2801b5d

Please sign in to comment.