I want to use the stl priority_queue to store "Task's" sorted by the Task's priority. When I create a Task and put it in the queue I would like to be able to change the priority of the created task and thereafter I would like to sort the queue again.
a.priority = 2;
a.priority = 0; // This Obviously dous not work but that
// is no suprise. How do I get to work?