We have a large C++ project with warnings as errors enabled. We would like to deprecate some old APIs, and naturally our first thought was to turn to the [[deprecated]]
language feature. This however triggers a -Wdeprecated-declarations
warning, which is turned into an error and fails the build.
Now, we know we can disable the error for that particular warning via -Wno-error=deprecated-declarations
. But still the build log would be full of compiler warnings, making it much harder to spot true compiler errors.
I wonder then if people have better solutions to deal with C++ deprecations in practice, in real-world large projects?