#ifndef CONSTRAINED_MODEL_HPP #define CONSTRAINED_MODEL_HPP #include "fitter.hpp" namespace opt_utilities { template class constrained_model :public model { public: bool meet_constraint(const Tp& p) { return do_meet_constraint(p); } private: virtual bool do_meet_constraint(const Tp& p)=0; }; } #endif