I have a common.h file:
typedef enum {
  num_letters = 26,
  num_directions = 2
} constants;
and another .h file for a class:
#include "Common.h"
using namespace common;
... some code ...
    vector< vector<uint> > data(constants::num_directions, vector<uint>(constants::num_letters, 0));
I checked the syntax for vector, it should be correct; I am also using c++11 std; However, it gives me the following errors:
error: 'constants::num_directions' is not a type
     vector< vector<uint> > data(constants::num_directions, vector<uint>(constants::num_letters, 0));
 error: expected unqualified-id before ',' token
     vector< vector<uint> > data(constants::num_directions, vector<uint>(constants::num_letters, 0));
                                                                                               ^
error: expected ')' before ',' token
 error: expected ')' before ',' token
 error: expected unqualified-id before numeric constant
     vector< vector<uint> > data(constants::num_directions, vector<uint>(constants::num_letters, 0));
and I am not really sure why it is happening, thank you very much in advance!
 
    