[2.1] C2589 error in OgreFastArray.h

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
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

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