What is the correct way to check whether a shared_ptr is NULL?

The following seems to return true for a pointer that hasn't been initialized:

bool has_child() const
{
  return _child != 0;
}

(in Hierarchical.h)

--
Anders

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to