Is there a point of doing somthing like this:
namespace status{
enum status{
ok,
error
};
}
and use it like that status::ok
Or should i do this:
enum status{
status_ok,
status_error
};
and use it like this status_ok
?
Update: With C++11 you now should do this:
enum class status {
ok,
error
};
and use like this: status::ok