------- Comment #2 from zhnmju123 at gmx dot de 2009-10-07 09:33 ------- Thanks for the fast reply! I had tried compilation with VC++ 2008 and there it worked, so I thought it would be valid. Maybe a more expressive error message could help. In this shortened example the error message is ... well... okay, but in my reallife project I get this as a first error, which is totally misleading (and lead me into thinking this is a compiler bug):
C:\Programme\C++\Projects\FreeFileSync\algorithm.cpp|565|error: no match for 'operator<' in 'dbLeft->DetectChanges::detectFileChange [with FreeFileSync::SelectedSide side = side, bool respectFiltering = true] < (FreeFileSync::SelectedSide)0u'| C:\Programme\C++\wxWidgets\include\wx\string.h|1572|note: candidates are: bool operator<(const wxString&, const wxString&)| C:\Programme\C++\wxWidgets\include\wx\string.h|1574|note: bool operator<(const wxString&, const wxChar*)| C:\Programme\C++\wxWidgets\include\wx\string.h|1576|note: bool operator<(const wxChar*, const wxString&)| C:\Programme\C++\wxWidgets\include\wx\longlong.h|1040|note: bool operator<(long int, const wxLongLong&)| C:\Programme\C++\wxWidgets\include\wx\longlong.h|1053|note: bool operator<(long unsigned int, const wxULongLong&)| -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41614