Skip to content

Commit

Permalink
Fully qualify std::move invocations to fix -Wunqualified-std-cast-call (
Browse files Browse the repository at this point in the history
#4101)

Clang implemented a warning last year to detect bare `move` and `forward` calls, as they have the potential to be error prone: llvm/llvm-project@70b1f6d. This warning should be available in clang-15.

Signed-off-by: Jordan Rupprecht <rupprecht@google.com>
  • Loading branch information
rupprecht authored Feb 9, 2023
1 parent af75ac4 commit bd5a263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Cpp/runtime/src/misc/IntervalSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ IntervalSet& IntervalSet::operator=(const IntervalSet& other) {
}

IntervalSet& IntervalSet::operator=(IntervalSet&& other) {
_intervals = move(other._intervals);
_intervals = std::move(other._intervals);
return *this;
}

Expand Down

0 comments on commit bd5a263

Please sign in to comment.