jeudi 1 septembre 2016

Understanding C++ make shared pointer with const arguments

I found somewhere this piece of code:

boost::shared_ptr<const Foo> pFoo = boost::make_shared<const Foo>();

What's the aim of the const keyword here?

Aucun commentaire:

Enregistrer un commentaire