On Fri, Jan 22, 2016 at 10:26 AM, Bogdan Vatra <bogdan.va...@kdab.com>
wrote:

>
> AFAIK C++11/14 compilers have zero-cost exception, so, is there any reason
> why
> not start using them in Qt 6.0 ?
>
>
+1

Exceptions in normal path lead to faster execution than using return codes.

For more information about this see this talk from MeetingC++ 2014: Writing
robust code <https://meetingcpp.com/index.php/tv14/items/19.html>
Code for this benchmarks can be found here:
https://bitbucket.org/davidstone/error-handling

Cheers,
Cristian.
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to