samedi 28 juillet 2018

Alias for std::dynamic_pointer_cast

I'm trying to create an alias for std::dynamic_pointer_cast but can't write something that compiles.

This is the way I'm trying:

template <typename T1, typename T2>
using dcast = std::dynamic_pointer_cast<T1, T2>;

What is wrong with it?

Aucun commentaire:

Enregistrer un commentaire