If I have something like the following in a header file, how do I declare a function that returns an enum of type Foo?
enum Foo { BAR, BAZ }; >
enum Foo { BAR, BAZ };
I believe that the individual values in the enum are identifiers in their own right, just use:
enum
enum Foo testFunc(){ return BAR; }