[c++] deprecated attribute with message
[[deprecated(“Please use the new_function instead”)]] void old_function() { // function body } ```
In this example, the old_function
is marked as deprecated with a message indicating that new_function
should be used instead. This is a useful way to provide additional information to developers about the deprecation.
Reference: GCC documentation - Deprecated attributes