pure virtual method called error
问题 I have the following definitions: class PartitioningMethod { public: virtual void addConstraints(ConstraintManager& cm) = 0; virtual bool hasMoreConstraints() = 0; virtual void setQuery(const Query& q) = 0; virtual ~PartitioningMethod(){ } }; class Random : public PartitioningMethod { private: vector< ref<Expr> > constraints; vector< ref<Expr> >::iterator it; vector< ref<Expr> >::iterator end; int numConstraints; RNG theRNG; public: void setQuery(const Query& q) { constraints.clear(); //Set