X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/b78d5563826957045678f4c3bcfdcef6c9bfc48d..f964322c1d9ba6560da668bef1880e4cd01b7a79:/cost_func.h

diff --git a/cost_func.h b/cost_func.h
index d7310d2..c6984d2 100644
--- a/cost_func.h
+++ b/cost_func.h
@@ -3,6 +3,7 @@
 
 #include <iostream>
 #include <string>
+#include <vector>
 
 // Define a polynomial function
 // The factors are given at construction time, in a C-style string,
@@ -11,13 +12,12 @@ class cost_func {
 public:
     cost_func(const char* param);
     ~cost_func();
-    cost_func& operator=(const cost_func& ref);
 
     double operator()(double amount) const;
     std::string to_string();
+
 private:
-    int degree;
-    double* factor;
+    std::vector<double> factors;
 };
 
 #endif // !COST_FUNC_H