error C2589: '(': illegal token on right side of '::' solution

Pit father of Microsoft Sucks Again.

assimp finally been updated to 5.0.0 and supports GLTF2 format, include animation to parse correctly, the correct result can be seen in the viewer, he really meow is not easy, and then compiled to bring in their own projects with, lies this stuff up , the magic is to compile his own viewer no problem?

Guannameduo, Baidu, said that the issue of class std :: min, the solution

https://blog.csdn.net/leifeng_soul/article/details/52611390

5, 6 years ago, I heard not to use std :: min, max cross-platform thing to do before then compile the source code PBRT std :: min had a similar problem with his own, then we must write its own set, must never use cpp standards, because Microsoft is always disgusting dog B from time to time you and let standards are not standard.

Solution, the simple and crude

iNum = std::min((size_t)iNum, prop->mDataLength / sizeof(Type));

  

Replaced

iNum = std::min<unsigned int>((size_t)iNum, prop->mDataLength / sizeof(Type));

  

 

Guess you like

Origin www.cnblogs.com/kileyi/p/11747268.html