I known that it is a bad practice using "using namespace xxx" in a header file, But what about the typedef in a interface header file?
for example:
typedef std::set<unsigned int> rsids_type; //!< typedef something.
struct IRsids
{
virtual const rsids_type& GetRsids() = 0;
}
On my option, I think this is also a bad practice for that we import a name "rsids_type" into global namespace? so what about the below action?
struct IRsids
{
typedef std::set<unsigned int> rsids_type; //!< typedef something inside the interface class.
virtual const rsids_type& GetRsids() = 0;
}