Page 1 of 1

Small bug: std::find not defined

Posted: Sun Oct 17, 2004 15:40
by sazzer
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

Small bug: std::find not defined

Posted: Sun Oct 17, 2004 16:09
by CrazyEddie
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.

Small bug: std::find not defined

Posted: Sun Oct 17, 2004 16:25
by Anveo
I'm on VC 2003, and I recieved the same errors.

Small bug: std::find not defined

Posted: Sun Oct 17, 2004 19:10
by CrazyEddie
I have checked in fixes for this; each use of std::find now has the algorithm include explicitly included.

CE.