
10 Jul
2007
10 Jul
'07
1:02 p.m.
2. I've run into the situation where parameters are truly optional - they don't specify default values, but optional components to an algorithm. What's the best way to implement this? How can I test (within a function) to determine if a parameter has been passed or not? I've hacked together an approach using a `not_given` struct. Is there something already like this in the library.
boost.optional should serve your purpose.