When compiling source code with MSVC 2005 in debug model, below two rows have
some problem.
======= two rows have problem ===========
l = lower_bound(it->second.begin(), it->second.end(), aFilter->minType(),
LowerLimitOfType());
u = upper_bound(l, it->second.end(), aFilter->maxType(),
LowerLimitOfType());
======= error info reported by MSVC compiler =====
c:\program files\microsoft visual studio 8\vc\include\xutility(290) : error
C2664: 'bool LowerLimitOfType::operator ()(const FGPositioned::Type,const
FGPositioned *) const' : cannot convert parameter 1 from 'FGPositioned *const '
to 'const FGPositioned::Type'
======= Patch for this problem ============
1) move definitions of "BucketEntry" and "SpatialPositionedIndex" to before of
the definition of class "LowerLimitOfType"
2) add method like below for class "LowerLimitOfType"
+ #if defined(_MSC_VER) && defined(_DEBUG)
+ bool operator()(const FGPositioned* a, const FGPositioned* b) const
+ {
+ return a->type() < b->type();
+ }
+ #endif
Sorry, in Microsoft Windows, there have not patch tool. I just can do like this.
Huang.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel