C++工程,枚举类输出运算符重载,elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
文章目录1,原始代码2,运行没问题,但编译会有警告:elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword3,修改1,原始代码#include <iostream>enum class TreeType : int { PINE = 1, CYPRESS = 2...