Boost Users :
From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2005-06-20 11:53:39
Is there any particular reason why at least some boost code uses default parameters. IME, I've found the using overloading is preferable. For example, when using boost::bind, one would have to explicitly give the default parameters whereas one wouldn't
if overloading were used. Also, using overloading rather than default parameters when a new function interface is needed can potentially break less client code (eg code that uses the type of the function won't break if overloading were used).
Given this, I'd like to hear some arguments for using default arguments over overloading (outside of constructors, of course, where one may not have much of a choice).
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