Skip to content

Commit

Permalink
fix(EDO): constructor declarations without templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreo committed Oct 3, 2024
1 parent 190a304 commit d3a2ab5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion edo/src/edoEstimatorAdaptive.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class edoEstimatorAdaptive : public edoEstimator<D>
public:
typedef typename D::EOType EOType;

edoEstimatorAdaptive<D>( D& distrib ) : _distrib(distrib) {}
edoEstimatorAdaptive( D& distrib ) : _distrib(distrib) {}

// virtual D operator() ( eoPop< EOT >& )=0 (provided by eoUF< A1, R >)

Expand Down
4 changes: 2 additions & 2 deletions edo/src/edoEstimatorAdaptiveReset.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ class edoEstimatorAdaptiveReset : public edoEstimatorAdaptive<D>
public:
typedef typename D::EOType EOType;

edoEstimatorAdaptiveReset<D>( D& distrib ) :
edoEstimatorAdaptiveReset( D& distrib ) :
edoEstimatorAdaptive<D>(distrib),
_dim(0)
{ }

edoEstimatorAdaptiveReset<D>( D& distrib, size_t dim ) :
edoEstimatorAdaptiveReset( D& distrib, size_t dim ) :
edoEstimatorAdaptive<D>(distrib),
_dim(dim)
{ }
Expand Down
8 changes: 4 additions & 4 deletions edo/src/edoEstimatorCombined.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ class edoEstimatorCombinedAdaptive : public edoEstimatorAdaptive<D>, public std:
public:
typedef typename D::EOType EOType;

edoEstimatorCombinedAdaptive<D>( D& distrib, edoEstimator<D>& estim) :
edoEstimatorCombinedAdaptive( D& distrib, edoEstimator<D>& estim) :
edoEstimatorAdaptive<D>(distrib),
std::vector<edoEstimator<D>*>(1,&estim)
{}

edoEstimatorCombinedAdaptive<D>( D& distrib, std::vector<edoEstimator<D>*> estims) :
edoEstimatorCombinedAdaptive( D& distrib, std::vector<edoEstimator<D>*> estims) :
edoEstimatorAdaptive<D>(distrib),
std::vector<edoEstimator<D>*>(estims)
{}
Expand Down Expand Up @@ -78,11 +78,11 @@ class edoEstimatorCombinedStateless : public edoEstimatorCombinedAdaptive<D>
public:
typedef typename D::EOType EOType;

edoEstimatorCombinedStateless<D>( edoEstimator<D>& estim ) :
edoEstimatorCombinedStateless( edoEstimator<D>& estim ) :
edoEstimatorCombinedAdaptive<D>(*(new D), estim)
{}

edoEstimatorCombinedStateless<D>( std::vector<edoEstimator<D>*> estims) :
edoEstimatorCombinedStateless( std::vector<edoEstimator<D>*> estims) :
edoEstimatorCombinedAdaptive<D>(*(new D), estims)
{}

Expand Down
2 changes: 1 addition & 1 deletion edo/src/edoRepairerModulo.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ template < typename EOT >
class edoRepairerModulo: public edoRepairerApplyBinary<EOT>
{
public:
edoRepairerModulo<EOT>( double denominator ) : edoRepairerApplyBinary<EOT>( std::fmod, denominator ) {}
edoRepairerModulo( double denominator ) : edoRepairerApplyBinary<EOT>( std::fmod, denominator ) {}
};


Expand Down

0 comments on commit d3a2ab5

Please sign in to comment.