diff options
-rw-r--r-- | core/constrained_model.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/constrained_model.hpp b/core/constrained_model.hpp index 710f76c..378cabd 100644 --- a/core/constrained_model.hpp +++ b/core/constrained_model.hpp @@ -6,15 +6,15 @@ namespace opt_utilities { template <typename Ty,typename Tx,typename Tp,typename Tstr=std::string> class constrained_model - :public model<Ty,Tx,Tp,Tstr=std::string> + :public model<Ty,Tx,Tp,Tstr> { public: - bool meet_constraint(const Tp& p) + bool meet_constraint(const Tp& p)const { return do_meet_constraint(p); } private: - virtual bool do_meet_constraint(const Tp& p)=0; + virtual bool do_meet_constraint(const Tp& p)const=0; }; } |