typedef __declspec(deprecated) int myint;
MSVC编译器将生成不支持myint的警告!
如果您希望编译器在编译不推荐的typedef时生成特定的消息,请执行以下操作:
typedef __declspec(deprecated("myint is deprecated,so most likely in the next version this myint will be missing")) int myint;