Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ba31c61c authored by hhakim's avatar hhakim
Browse files

Fix warning about deleting of C++ object whose class ctor is non-virtual.

parent 22c5ea31
Branches
Tags
No related merge requests found
...@@ -117,7 +117,7 @@ namespace Faust { ...@@ -117,7 +117,7 @@ namespace Faust {
/*virtual*/ void project(MatDense<FPP,DEVICE> & mat)const;//=0; //template with (pure) virtual not authorized (otherwise it must be templates from class, not function) /*virtual*/ void project(MatDense<FPP,DEVICE> & mat)const;//=0; //template with (pure) virtual not authorized (otherwise it must be templates from class, not function)
template<typename FPP, FDevice DEVICE, typename FPP2> template<typename FPP, FDevice DEVICE, typename FPP2>
/*virtual*/ void project(Faust::MatDense<FPP, DEVICE>&) const /*=0*/; /*virtual*/ void project(Faust::MatDense<FPP, DEVICE>&) const /*=0*/;
~ConstraintGeneric(){}; virtual ~ConstraintGeneric(){};
protected: protected:
/// type of constraint /// type of constraint
......
...@@ -76,6 +76,7 @@ class PyxParamsFact ...@@ -76,6 +76,7 @@ class PyxParamsFact
unsigned int grad_calc_opt_mode; unsigned int grad_calc_opt_mode;
int norm2_max_iter; int norm2_max_iter;
double norm2_threshold; double norm2_threshold;
virtual ~PyxParamsFact(){};
}; };
template<typename FPP, typename FPP2 = double> template<typename FPP, typename FPP2 = double>
...@@ -86,7 +87,7 @@ class PyxParamsFactPalm4MSA : public PyxParamsFact<FPP,FPP2> ...@@ -86,7 +87,7 @@ class PyxParamsFactPalm4MSA : public PyxParamsFact<FPP,FPP2>
unsigned long* init_fact_sizes; unsigned long* init_fact_sizes;
PyxStoppingCriterion<FPP2> stop_crit; PyxStoppingCriterion<FPP2> stop_crit;
virtual PyxStoppingCriterion<FPP2>& get_stop_crit() {return stop_crit;}; virtual PyxStoppingCriterion<FPP2>& get_stop_crit() {return stop_crit;};
virtual ~PyxParamsFactPalm4MSA(){};
}; };
template<typename FPP, typename FPP2 = double> template<typename FPP, typename FPP2 = double>
...@@ -105,6 +106,7 @@ class PyxParamsHierarchicalFact : public PyxParamsFact<FPP,FPP2> ...@@ -105,6 +106,7 @@ class PyxParamsHierarchicalFact : public PyxParamsFact<FPP,FPP2>
PyxStoppingCriterion<FPP2>* stop_crits; // must be of size 2 PyxStoppingCriterion<FPP2>* stop_crits; // must be of size 2
bool is_fact_side_left; bool is_fact_side_left;
virtual const PyxStoppingCriterion<FPP2>* get_stop_crits() {return stop_crits;}; virtual const PyxStoppingCriterion<FPP2>* get_stop_crits() {return stop_crits;};
virtual ~PyxParamsHierarchicalFact(){}
}; };
template<typename FPP, typename FPP2 = double> template<typename FPP, typename FPP2 = double>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment