Hi.

Visual C++ .NET outputs this error when I try to declare a priority queue with reverse sorting.

-----
// Assuming program runs and before I added the following.
#include <queue>
#include <functional>

std:riority_queue<int, std::greater<int>> m_nQueueList;

// I try this declaration, but receive the exact same
// error everytime.

std:riority_queue<int, std::vector<int>, std::greater<int>> m_nQueueList;
-----

Here is the error from Visual C++ .NET

-----
C2065: 'm_nQueueList' : undeclared identifier
error C2143: syntax error : missing '>' before ';'
error C2146: syntax error : missing ',' before identifier 'm_nQueueList'
error C2208: '<Unknown>' : no members defined using this type
error C2947: expecting '>' to terminate template-argument-list, found '>>'
error C2976: 'std:riority_queue' : too few template arguments
-----

Does anyone know what the problem is?

Thanks,
Kuphryn