Articles tagged ‘Design Patterns’
Making Boost.Signals2 More OOP‐Friendly
The observer design pattern is by far the most popular and widely known among behavioural design patterns. Unfortunately, unlike other mainstream languages out there, the C++ standard library doesn’t provide out of the box observer implementation. This article suggests an observable mixin based on Boost.Signals2 which makes it easy to build an observer.