[Already reported and fixed] min, max

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Aleksey14
Just popping in
Just popping in
Posts: 1
Joined: Wed Jun 18, 2014 13:18

[Already reported and fixed] min, max

Postby Aleksey14 » Wed Jun 18, 2014 13:24

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).

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: [Compilation Error] min, max

Postby lucebac » Wed Jun 18, 2014 14:52

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)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 12 guests