0

I got a typedef function pointer type defined as

typedef double(*fun)(const eValue&);

why is this line throwing an error: missing type specifier -int assumed? and syntax error: missing , before '&'?

can anyone help me?

Thanks in advance.

1
  • 4
    Sounds like eValue hasn't been declared in that scope. Commented Sep 13, 2014 at 0:07

1 Answer 1

1

The reason likely is that eValue is undefined.

Assuming it is an enum (just guessing from its name) try

enum eValue;
typedef double(*fun)(const eValue&);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.