I'm trying to use existing 3rd party enum type of the form:
enum EnumType
{
ONE,
TWO,
THREE
}
in my project with two usages:
- in some files I would like to import this
enumand put it into an existing namespace (e.g "namespace myproject"). - in file
API.hI would like to import thisenumjust to declare method with return type of thisenum(in cpp file I would just make cast frommyproject::EnumTypetoEnumType)
The reason why I want to do this is that I don't want to put the definition of the enum in the API header's namespace.
I have problem with the first point, how can I do it?
#include API.hin the namespace?