Patch from Karima.Boufaras@inria.fr: compilation wth CUDACC

This commit is contained in:
Johann Dreo 2010-09-03 15:55:28 +02:00
commit be19562147
3 changed files with 56 additions and 19 deletions

View file

@ -41,7 +41,11 @@ template < class F > class PO:public EO < F >
public:
typedef typename PO < F >::Fitness Fitness;
#if defined(__CUDACC__)
typedef typename EO < F >::Fitness Fitness;
#else
typedef typename PO<F>::Fitness Fitness;
#endif
/** Default constructor.
Fitness must have a ctor which takes 0 as a value. Best fitness mush also have the same constructor.