<分区>
Visual Studio 2019 表示第 30 行存在语法错误,它表示存在意外的“]”,尽管事实上唯一的右括号是右括号。 我不知道为什么会这样,这从来没有发生在我身上,我真的不知道该怎么办。
template <class T>
void DefinedLog(T out) {
try {
std::cout << G_RGB() << out << "\33[0m" << std::endl;
} catch (int) {
DE_UNUSABLE_PARAM_EXCEPTION e;
Debug debug;
debug.SetColor(new int[] {255, 0, 0}); // line 30
debug.DefinedLog(e.what();)
}
}