6 May
2009
6 May
'09
9:44 a.m.
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);