From 2f6e7525166a43c6bf4a06d77761bf80700ac3f8 Mon Sep 17 00:00:00 2001 From: kjgm Date: Thu, 26 Sep 2024 15:32:32 +0200 Subject: [PATCH] bugfix for gcc and clang --- include/solver/solver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/solver/solver.h b/include/solver/solver.h index 88c3d63..b520ce1 100644 --- a/include/solver/solver.h +++ b/include/solver/solver.h @@ -107,7 +107,7 @@ 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 const bool sparse_objective = constexpr(OT::total_order && OT::has_branching_costs + static constexpr bool sparse_objective = constexpr(OT::total_order && OT::has_branching_costs && OT::constant_branching_costs && (std::is_same::value || std::is_same::value)); Solver(ParameterHandler& parameters, std::default_random_engine* rng);