Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool cmpFunc(const node* a,const node* b)
- {
- return (a->freqOfAlphabet) <= (b->freqOfAlphabet) ;
- }
- class huffmanEncoder
- {
- set<node*,bool (*)(const node*,const node*)> mset(&cmpFunc) ;// throws error
- ....
- }
- int main()
- {
- set<node*,bool (*)(const node*,const node*)> mmset(&cmpFunc) ; // works fine
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement