[boost] An alternative approach to TypeErasure