dimanche 22 juillet 2018

Deprecating classes and function in C++11 [duplicate]

This question already has an answer here:

I am working on a project in C++ where I have written a set of new classes which supersedes some other classes with similar functionality. I therefore want to deprecate the old classes and all methods within it. I've found you can do [[deprecated]] or [[deprecated](reason for deprecation)] but this only for C++14. I'm using C++11 but surely deprecating something its a new thing that only the latest C++ versions can do?

Am I missing something or would I have to upgrade my project to be C++14 (assuming I have a compiler that is capable)?

Aucun commentaire:

Enregistrer un commentaire