I\'m trying to declare a priority queue in c++ using a custom comparison function...
So , I declare the queue as follows:
std::priority_queue
You can use a typedef. This compiles very well:
typedef bool (*comp)(int,int); bool compare(int a, int b) { return (a, comp> pq(compare); return 0; }