diff --git a/include/Planet.hpp b/include/Planet.hpp index 7d62504..3e2e109 100644 --- a/include/Planet.hpp +++ b/include/Planet.hpp @@ -296,17 +296,17 @@ template class StackPlanet : public BasePlanet { // Reverse into temp to preserve original insertion order while (!s.empty()) { - temp.push(move(s.top())); + temp.push(std::move(s.top())); s.pop(); } // Filter: keep only elements >= threshold while (!temp.empty()) { - T value = move(temp.top()); + T value = std::move(temp.top()); temp.pop(); if (value >= threshold) - survivors.push(move(value)); + survivors.push(std::move(value)); } - s = move(survivors); + s = std::move(survivors); removedCount += beforeSize - static_cast(s.size()); } }; @@ -390,12 +390,12 @@ template class QueuePlanet : public BasePlanet { // Drain queue, keeping only elements >= threshold while (!q.empty()) { - T value = move(q.front()); + T value = std::move(q.front()); q.pop(); if (value >= threshold) - survivors.push(move(value)); + survivors.push(std::move(value)); } - q = move(survivors); + q = std::move(survivors); removedCount += beforeSize - static_cast(q.size()); } }; diff --git a/include/SolarSystem.hpp b/include/SolarSystem.hpp index fdcd09a..1a915da 100644 --- a/include/SolarSystem.hpp +++ b/include/SolarSystem.hpp @@ -164,7 +164,7 @@ template class SolarSystem { cout << "Planet Id: " << p->metadata << " (" << p->name << ")" << endl; - planets.push_back(move(p)); // Move semantics: transfers ownership + planets.push_back(std::move(p)); // Move semantics: transfers ownership star.planet_count++; star.id = star.planet_count - 1; }