Original Post
I'm getting the above error on the following line of code:
template< typename T > struct DXComponentZMapper
{
typedef unsigned int KeyType;
const KeyType getKey()(const T& o)
{ return o->getZOrder(); } // Compiler error here...
};
which is declared in this:
TSortTree< DXComponent*, DXComponentZMapper > CompTree;where TSortTree has the following declaration:
template< typename T
, template< class > class MappingPolicy = TrivialKeyMapper
, template< class > class AllocatorPolicy = StandardNodeAllocator
, template< class > class BalancerPolicy = NeverTreeBalancer >
class TSortTree {
// ....
};
Does anybody know why this happens? Does it have anything to do with including STL ?
Thanks a lot,
Jeff
Edit: Fixed the angle brackets...grr
[edited by - rypyr on February 3, 2004 10:28:56 AM]