Boost::shared_ptr and nullptr in default template function argument?

This will works with std::shared_ptr instead of boost::shared_ptr I think.

According to boost.org/doc/libs/1_52_0/libs/smart_ptr... , boost::shared_ptr cannot be initialized by a null pointer constant because for the pointer-taking constructor, it is templated by Y* where Y is a template parameter. A conversion of a null pointer constant to Y* is not considered when deducing Y*, so that constructor will have a deduction failure and is ignored when passing nullptr.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions