30 Jan
2014
30 Jan
'14
6:23 a.m.
Mere moments ago, quoth I:
On 30/01/2014 15:13, Quoth Ben Pope:
// invoke g with empty object g(shared_ptr<CSomeReallyLongClassName>());
g(0); [...] (Also, the above doesn't compile in 1.53 because the raw pointer constructor is marked explicit. Again, maybe that's been changed in the interim.)
If you're using a C++11 compiler you should be able to use this though: g(nullptr);