Boost logo

Boost Users :

Subject: Re: [Boost-users] [optional]
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2009-05-06 05:44:06

Igor R wrote:

> > 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::none will be helpful as well:
f(p1, p2, boost::none, p4);


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at