Articles Tagged ‘C++’
Making Boost.Signals2 More OOP‐Friendly
Metadata
- Published:
- .
- Reading time:
- .
Unfortunately, unlike other mainstream languages, 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.
Resource Management with Explicit Template Specialisations
Metadata
- Published:
- .
- Reading time:
- .
Here’s my article from the April 2015 issue of Overload journal. It shows how to build a convenient RAII wrapper with the help of interesting static polymorphism technique based on explicit template specialisation.
Providing Explicit Specialisations for Non‐Template Members of Class Template
Metadata
- Published:
- .
- Reading time:
- .
It is a well-known fact that you can provide explicit specialisations for function templates and class templates. But it was a total surprise to me that you can define explicit specialisations for non‐template members of class template without specialising the class template itself!