Small bug: std::find not defined

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
sazzer
Just popping in
Just popping in
Posts: 12
Joined: Wed Jan 12, 2005 12:06

Small bug: std::find not defined

Postby sazzer » Sun Oct 17, 2004 15:40

I don't know if this is a VC8 issue, or just an oversight that somehow got through, but tring to compile CEGUI on my system it threw back 4 errors, all releating to std::find not being defined.

The fix is simply to add the line

Code: Select all

#include <algorithm>

to the top of CEGUIWindow.h and CEGUIWindowFactoryManager.h.

This is on the CVS Head as of last night, so there's a small chance that it's already been fixed, but I couldn't find anything on here about it...
--
Graham

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Small bug: std::find not defined

Postby CrazyEddie » Sun Oct 17, 2004 16:09

Thanks for the report.

In all other systems the algorithm header must be being brought in implicitly via another header; apparently this is not true for VC++8.

I'll check in a fix for this later on :)

Thanks again,

CE.

User avatar
Anveo
Just popping in
Just popping in
Posts: 1
Joined: Wed Jan 12, 2005 12:06

Small bug: std::find not defined

Postby Anveo » Sun Oct 17, 2004 16:25

I'm on VC 2003, and I recieved the same errors.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Small bug: std::find not defined

Postby CrazyEddie » Sun Oct 17, 2004 19:10

I have checked in fixes for this; each use of std::find now has the algorithm include explicitly included.

CE.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests