S
Sean Farrow
Hi:
When compiling the folowing code under visual c++ 2005 I get he following
error:
C3848: expression having type 'const BitSetComp' would lose some
const-volatile qualifiers in order to call 'const bool BitSetComp:perator
()(const KeyType &,const KeyType &)'
This is in the file xtree on line 1174. The code causing this is:
struct BitSetComp
{
bool const operator()(const KeyType& lhs, const KeyType& rhs)
{
return lhs.to_ulong() < rhs.to_ulong();
}
};
Anyone got a clue what the issue is, and what's causing this?
What is the solution?
Cheers
Sean.
When compiling the folowing code under visual c++ 2005 I get he following
error:
C3848: expression having type 'const BitSetComp' would lose some
const-volatile qualifiers in order to call 'const bool BitSetComp:perator
()(const KeyType &,const KeyType &)'
This is in the file xtree on line 1174. The code causing this is:
struct BitSetComp
{
bool const operator()(const KeyType& lhs, const KeyType& rhs)
{
return lhs.to_ulong() < rhs.to_ulong();
}
};
Anyone got a clue what the issue is, and what's causing this?
What is the solution?
Cheers
Sean.