Category "visitor-pattern"

Visitor Pattern and std::shared_ptr

I am using the Visitor design pattern in my application for message processing. For example: class AbstractMessageVisitor; class AbstractMessage { public:

Specialize a visitor for types under a namespace

I have a variant which can contain 8 different types, some of them under a particular namespace std::variant<T0, T1, T2, ns::T0, ns::T1, ns::T2> v; There