Fix icc compilation failures.
1 #include <lemon/simann.h>
5 class MyEntity : public EntityBase {
8 MyEntity() : d(100000.0) { srand48(time(0)); }
11 if (drand48() < 0.8) { d += 1.0; }
15 void revert() { d = prev_d; }
16 MyEntity* clone() { return new MyEntity (*this); }
22 SimpleController ctrl;
23 simann.setController(ctrl);
25 simann.setEntity(ent);
28 //MyEntity *best_ent = (MyEntity *) simann.getBestEntity();
29 //std::cout << best_ent->d << std::endl;
32 AdvancedController ctrl2(2.0);
33 simann2.setController(ctrl2);
35 simann2.setEntity(ent2);
38 //MyEntity *best_ent2 = (MyEntity *) simann2.getBestEntity();
39 //std::cout << best_ent2->d << std::endl;