I just encountered a case where I wanted to declare a C++ 20 concept
deprecated. However it seems like my compiler (Apple Clang 14) does not accept adding a [[deprecated]]
attribute to a concept
. My attempt looked like
template <class T>
concept [[deprecated ("Some explanation")]] myConcept = someBoolCondition<T>;
Is deprecating concepts simply not supported (yet), did I choose a wrong syntax or is this a flaw of my compiler?