If I have something like the following in a header file:
enum Foo
{
BAR,
BAZ
};
how do I declare a function that returns an enum of type foo? Can I just do something like the following:
Foo testFunc()
{
return Foo.BAR;
}
Or do I need to use typedefs or pointers or something?