Boost logo

Boost Users :

From: dick.bridges_at_[hidden]
Date: 2003-04-23 17:46:47


What is the 'correct' way to return a NULL/empty shared_ptr? For example,
this works

<snippet>
shared_ptr<int> maybe_get_a_pointer()
{
      shared_ptr<int> p;
      return(p);
}
</snippet>

but seems 'klunky'. I've clearly missed something in the docs/examples
somewhere. Can someone point me in the right direction?

TIA


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net