We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d76cc6 commit b0b4670Copy full SHA for b0b4670
include/vrp/solution.hpp
@@ -61,24 +61,15 @@ class Solution {
61
*
62
*/
63
Solution();
64
+ ~Solution() = default; // destructor
65
66
67
+ /* copy operations */
68
+ Solution(const Solution&) = default;
69
+ Solution& operator=(const Solution&) = default;
70
- /* @brief copy constructor */
- Solution(const Solution &sol) :
- EPSILON(0.0001),
- fleet(sol.fleet),
71
- trucks(sol.trucks)
72
- {};
73
-
74
- /* @brief copy assignment */
75
- Solution& operator = (const Solution& sol) {
76
- EPSILON = 0.0001,
77
- fleet = sol.fleet;
78
- trucks = sol.trucks;
79
- return *this;
80
- };
81
+ Solution(Solution&&) = default;
+ Solution& operator=(Solution&&) = default;
82
83
Initials_code get_kind() const;
84
0 commit comments