Hello, dear programmers!
Please help with the next code:
typedef enum {a1, a2, a3} E;
template<E e>
int foo() {
return static_cast<int>(e);
}
class A {
A() {};
friend int foo<E e>();
};
The compiler says: error C2146: syntax erorr: missing "," before identifier "e"
I would be glad if someone could explain my mistake. Thanks.