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

@ -39,13 +39,13 @@ Authors:
* This class uses the NormalMono distribution parameters (bounds) to return
* a random position used for population sampling.
*/
template < typename EOT >
class edoSamplerNormalMono : public edoSampler< edoNormalMono< EOT > >
template < typename EOT, typename D = edoNormalMono< EOT > >
class edoSamplerNormalMono : public edoSampler< D >
{
public:
typedef typename EOT::AtomType AtomType;
edoSamplerNormalMono( edoRepairer<EOT> & repairer ) : edoSampler( repairer) {}
edoSamplerNormalMono( edoRepairer<EOT> & repairer ) : edoSampler< D >( repairer) {}
EOT sample( edoNormalMono< EOT >& distrib )
{