I am getting below error while trying to compile C++ code
cookieSetter.cc:126: error: nav cannot appear in a constant-expression
cookieSetter.cc:126: error: `.' cannot appear in a constant-expression
Basically there is a enum list defined inside a header file"navBuilder.h" and a function inside cookieSetter.cc file is trying to access the enum constant with a dot "." operator. below is the code snippet from header and .cc file.