Remove some not used namespace declarations.
[genetic.git] / include / condition / condition.h
index eea77d593accd1210719ce14db78882042505394..29ac133194254e03896dde7bf2d41e2e18de93f0 100644 (file)
@@ -4,8 +4,6 @@
 #include "chromosome.h"
 #include "generation.h"
 
-using namespace std;
-
 namespace genetic {
     /**
      * Base Condition class.
@@ -24,7 +22,7 @@ namespace genetic {
          * @return true if condition is satisfied and another generation can checked;
          *      false if condition is not satisfied and algorithm should stop.
          */
-        virtual bool do_check(Generation<_Chromosome>&) = 0;
+        virtual bool do_check(const Generation<_Chromosome>&) = 0;
 
     public:
         /**
@@ -36,7 +34,7 @@ namespace genetic {
          * @return true if condition is satisfied and another generation can checked;
          *      false if condition is not satisfied and algorithm should stop.
          */
-        bool check(Generation<_Chromosome>& generation) {
+        bool check(const Generation<_Chromosome>& generation) {
             return do_check(generation);
         }
     };