aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@gmail.com>2012-12-28 01:00:02 +0800
committerastrojhgu <astrojhgu@gmail.com>2012-12-28 01:00:02 +0800
commit6ebca9ba6d897ca39d98f6fc104fc1e72470942b (patch)
tree489f43a6fc20c5acd0b3898e4321bc33c361c3b1 /core
parentaac95b5cd24e8cc4c189ab92f10a0d4bbb23cc1c (diff)
downloadopt-utilities-6ebca9ba6d897ca39d98f6fc104fc1e72470942b.tar.bz2
Fix some bug
modified: core/constrained_model.hpp
Diffstat (limited to 'core')
-rw-r--r--core/constrained_model.hpp6
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;
};
}