I have a C++ file that uses std::move
a lot, and the code is a lot cleaner without having to qualify each use of std::move
with std::
. I added a using std::move
declaration to the top of the file, but Xcode is giving me this warning that I want to turn off:
Unqualified call to ‘std::move’
In the build log, I see entries like:
/Users/me/code/Proj/src/File.cpp:30:27: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
How do I disable that warning?
3
To suppress that warning, you’d have to add a -Wno-unqualified-std-cast-call
to your C++ Other Warning flags section
8