>
> > The idea was to silently return a default-constructed type.
>
> I'm not keen on that. Aside from adding extra restrictions to the
> types that the class can be used with as you mention,
> it runs the much more severe risk of masking serious bugs.
>

Returning default-constructed value is heavily used practice in qt api and
it simplifies our code. We (try to) design our code such that
default-constructed value means safe default / failure.

Kind regards
 Brano
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to