diff --git a/smp/src/island.cpp b/smp/src/island.cpp index 39f864dd1..da6066117 100644 --- a/smp/src/island.cpp +++ b/smp/src/island.cpp @@ -37,7 +37,8 @@ paradiseo::smp::Island::Island(unsigned _popSize, eoInit& _chro algo(EOAlgo(wrap_pp>(this->ck,args)...)), intPolicy(_intPolicy) { - static_assert(std::is_base_of,EOAlgo>::value, "Algorithm must inherit from eoAlgo"); + static_assert(std::is_base_of,EOAlgo>::value, "Algorithm must inherit from eoAlgo"); + _migPolicy.addObserver(this); } template