I would like to deprecate a C++ header so that if someone includes it in their code, the compiler issues a warning.
I know that I can deprecate individual symbols, for example, using C++14 [[deprecated]], but is there a similar thing for headers? Maybe some clever trick?
Note that I want the compiler to issue a warning even if the user doesn't use anything from the header.