use default typename for distrib, correct constructor superclass init

This commit is contained in:
nojhan 2011-09-15 17:44:55 +02:00
commit c1d49d7bd2
3 changed files with 9 additions and 9 deletions

View file

@ -38,13 +38,13 @@ Authors:
* This class uses the Uniform distribution parameters (bounds) to return
* a random position used for population sampling.
*/
template < typename EOT, class D=edoUniform<EOT> > // FIXME: D template name is there really used ?!?
class edoSamplerUniform : public edoSampler< edoUniform< EOT > >
template < typename EOT, class D = edoUniform<EOT> >
class edoSamplerUniform : public edoSampler< D >
{
public:
typedef D Distrib;
edoSamplerUniform( edoRepairer<EOT> & repairer ) : edoSampler( repairer) {}
edoSamplerUniform( edoRepairer<EOT> & repairer ) : edoSampler< D >( repairer) {}
EOT sample( edoUniform< EOT >& distrib )
{