From 6ebca9ba6d897ca39d98f6fc104fc1e72470942b Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Fri, 28 Dec 2012 01:00:02 +0800 Subject: Fix some bug modified: core/constrained_model.hpp --- core/constrained_model.hpp | 6 +++--- 1 file 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 class constrained_model - :public model + :public model { 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; }; } -- cgit v1.2.2