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
};
Can I just do something like the following?
Foo testFunc()
{
return Foo.BAR;
}
Or do I need to use typedefs or pointers or something?