Boost logo

Boost Users :

Subject: Re: [Boost-users] [optional]
From: Igor R (boost.lists_at_[hidden])
Date: 2009-05-06 05:07:53


> f(p1, boost::optional<Param2>(p2), boost::optional<Param3>(),
> boost::optional<Param4>(p4) );

The params would be implicitly converted, so you can call like this:
f(p1, p2, boost::optional<Param3>(), p4);


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