//This doesn`t workbecause of const problem...
template <int p>
bool FComapare (Node *lId, Node* rId) ;
Here, p must be a constant known at compile-time.
for (int i = 0;i < partNum; ++i)
{
//This doesn`t workbecause of const problem...
set<Node *, bool (*)(Node*,Node*) > f(&FComapare<i>);
m_F.push_back(f);
}
Because i is not a constant.