Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
void SetProjection(mat4 &matr);
为什么不使用参数 byconst&而不是 by non-const &?这看起来像一个错误,因为SetProjection没有修改参数。
const&
&
SetProjection
这就是您的编译器错误的来源。的返回值perspective是临时的。并且临时不能由非常量存储&。
perspective