[std-interval] default constructor
Guillaume Melquiond
guillaume.melquiond at ens-lyon.fr
Wed Apr 5 14:42:28 PDT 2006
Le mercredi 05 avril 2006 à 05:13 -0600, Alan Eliasen a écrit :
> I think that there should *never* be a zero-arg default constructor
> for intervals. All constructors should have at least one argument to
> force the programmer to declare their intent.
This is too strong a requirement. Forbidding arrays of intervals is a
sure way of alienating any C++ user. You need a default constructor if
you don't want the users to go to great and error-prone lengths to
create arrays (or any higher-level containers).
Best regards,
Guillaume
More information about the Std-interval
mailing list