Page 1 of 1

[Already reported and fixed] min, max

Posted: Wed Jun 18, 2014 13:24
by Aleksey14
So... may be this bug is already suggested, but anyway:
first of all, change this lines in Base.h:

Code: Select all

#    define ceguimin(a, b)   ((a < b) ? a : b)
#    define ceguimax(a, b)   ((a < b) ? b : a)


After it, in some files some lines of source code are like: std::min(..), std::max(..). Need to change to ceguimin(..), ceguimax(..).


P.S. CMake 3.0.0 doesn't creates solution files for vs10, 12(may be someone else) from CEGUI sources(but Deps works well).

Re: [Compilation Error] min, max

Posted: Wed Jun 18, 2014 14:52
by lucebac
Hi Aleksey14,

yes, this bug was mentioned several times. It's caused by Microsoft because std::min and std:max are in <algorithm> from now on (when using VS13) and is already solved. The solution will be in the next CEGUI release which will be available within the next days.

Greetings,
lucebac

P.S.: The last report of this bug is only two post beneath yours. Please look a bit around next time. (http://cegui.org.uk/forum/viewtopic.php?f=3&t=6663)