I am inside a namespace:
namespace Events
{
class CInboundEvent;
typedef std::shared_ptr<CInboundEvent> CInboundEventPtr;
class CInboundEvent : public std::enable_shared_from_this<CInboundEvent>
{
...
CInboundEventPtr m_spNextEvent;
};
No try and use "encapsulate field".
This resultzs in:
Events::CInboundEventPtr GetNextEvent() const
{
return m_spNextEvent;
}
void SetNextEvent(Events::CInboundEventPtr val)
{
m_spNextEvent = val;
}
I would like to have no namespace here. Yes it is correct. But I am in this namespace. So why to use it?