Skip to content

fix: qualify std::move calls in headers#2

Open
poyrazK wants to merge 1 commit intomamitrkr:mainfrom
poyrazK:fix/std-move-warnings
Open

fix: qualify std::move calls in headers#2
poyrazK wants to merge 1 commit intomamitrkr:mainfrom
poyrazK:fix/std-move-warnings

Conversation

@poyrazK
Copy link
Copy Markdown

@poyrazK poyrazK commented Mar 5, 2026

Explicitly qualifies all calls to move() with the std:: prefix in include/Planet.hpp and include/SolarSystem.hpp.

Changes:

  • Added std:: prefix to 7 calls in include/Planet.hpp.
  • Added std:: prefix to 1 call in include/SolarSystem.hpp.

This resolves compiler warnings (e.g., from AppleClang) about unqualified standard library calls.

Explicitly qualifies all calls to `move()` with the `std::` prefix in `include/Planet.hpp` and `include/SolarSystem.hpp`. This resolves compiler warnings regarding unqualified calls to `std::move` (e.g., -Wunqualified-std-cast-call) and ensures compliance with standard library best practices, especially when `using namespace std;` is present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant