How to deprecate a method in Xcode

前端 未结 5 2030
抹茶落季
抹茶落季 2020-12-07 12:08

We have our library we ship to our customers, and I\'d like to mark some methods as \"deprecated\" because we changed them (like Apple does in the iPhone SDK).

I\'ve

5条回答
  •  执念已碎
    2020-12-07 12:51

    If you are using C++14 in your xcode project, you may also use the [[deprecated]] or [[deprecated("reason")]] attribute that is now part of the language.

    see documentation: http://en.cppreference.com/w/cpp/language/attributes

提交回复
热议问题