在写Games101 Homework2的时候,下面这句的 auto推断不出3个变量的类型。
// If so, use the following code to get the interpolated z value. auto [alpha, beta, gamma] = computeBarycentric2D(x, y, t.v);
解决方法是:点击属性将默认C++语言标准的从14改为17即可
属性