Boost logo

Boost Users :

From: Andrew R. Thomas-Cramer (artc_at_[hidden])
Date: 2002-05-13 13:26:20


In this function declaration, is there a simpler way to express a null shared pointer as the default argument value?
  void foo( const boost::shared_ptr<T> & p = boost::shared_ptr<T>( ) );

In this function call, is there a simpler way to express a null shared pointer as the actual argument?
  foo( boost::shared_ptr<T>( ) );

-----------------------------------------------------------------------
Andrew R. Thomas-Cramer
Work: artc_at_[hidden] http://www.prism-cs.com/
Home: artc_at_[hidden] http://www.execpc.com/~artc/
-----------------------------------------------------------------------

[Non-text portions of this message have been removed]


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