From bd5a263e933599760abed24162237b92278eb3c2 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Wed, 8 Feb 2023 20:19:21 -0600 Subject: [PATCH] Fully qualify std::move invocations to fix -Wunqualified-std-cast-call (#4101) Clang implemented a warning last year to detect bare `move` and `forward` calls, as they have the potential to be error prone: https://github.com/llvm/llvm-project/commit/70b1f6de539867353940d3dcb8b25786d5082d63. This warning should be available in clang-15. Signed-off-by: Jordan Rupprecht --- runtime/Cpp/runtime/src/misc/IntervalSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Cpp/runtime/src/misc/IntervalSet.cpp b/runtime/Cpp/runtime/src/misc/IntervalSet.cpp index ea910afe6e..058d98703e 100755 --- a/runtime/Cpp/runtime/src/misc/IntervalSet.cpp +++ b/runtime/Cpp/runtime/src/misc/IntervalSet.cpp @@ -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; }