A
Allen
struct FcdaCompare
{
bool operator()(const SclNode* n1, const SclNode* n2) const
{
return n1 < n2;
}
};
std::map< const SclNode*, const DataSetFcda*, FcdaCompare > fcdaMap;
I want to find an entry this way
SclNode * pNode = ...;
std::map< const SclNode*, const DataSetFcda*, FcdaCompare >::iterator
itr = fcdaMap.find(pNode); /* find line */
....
But compiling fails at *find line*.
Where is the problem? Please help me.
Thank you.
Allen
{
bool operator()(const SclNode* n1, const SclNode* n2) const
{
return n1 < n2;
}
};
std::map< const SclNode*, const DataSetFcda*, FcdaCompare > fcdaMap;
I want to find an entry this way
SclNode * pNode = ...;
std::map< const SclNode*, const DataSetFcda*, FcdaCompare >::iterator
itr = fcdaMap.find(pNode); /* find line */
....
But compiling fails at *find line*.
Where is the problem? Please help me.
Thank you.
Allen