[2.1] C2589 error in OgreFastArray.h

Design / architecture / roadmap discussions related to future of Ogre3D (version 2.0 and above)
Post Reply
ExPeTe
Gnoblar
Posts: 1
Joined: Mon Feb 04, 2019 8:53 pm

[2.1] C2589 error in OgreFastArray.h

Post by ExPeTe » Mon Feb 04, 2019 9:20 pm

Hello,
I'm just updating my 2 year old Ogre 2.1 version to the newest one and switched from Visual Studio 2013 to 2017.

In the line 83 of OgreFastArray.h I got the error C2589 because of std::max.
The same problem and some possible solutions are mentioned here: https://stackoverflow.com/questions/500 ... r/22023122
Changing std::max to (std::max) fixed the error for me.
0 x

Post Reply