Skip to content

Commit

Permalink
bugfix for gcc and clang
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgm committed Sep 26, 2024
1 parent 2f6e752 commit 557b2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/solver/solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ namespace STreeD {
using Context = typename OT::ContextType; // The class type of the context (default = BranchContext)
using LabelType = typename OT::LabelType; // The class of the (input) label, e.g., double for regression, int for classification
using SolLabelType = typename OT::SolLabelType; // The class of the leaf label, e.g., int for classification, or linear model for piecewise linear regression
static constexpr bool sparse_objective = constexpr(OT::total_order && OT::has_branching_costs
&& OT::constant_branching_costs && (std::is_same<typename OT::SolType, double>::value || std::is_same<typename OT::SolType, int>::value));
static constexpr bool sparse_objective = OT::total_order && OT::has_branching_costs
&& OT::constant_branching_costs && (std::is_same<typename OT::SolType, double>::value || std::is_same<typename OT::SolType, int>::value);

Solver(ParameterHandler& parameters, std::default_random_engine* rng);
~Solver();
Expand Down

0 comments on commit 557b2e2

Please sign in to comment.