<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 8:33 AM, SF Markus Elfring <span dir="ltr"><<a href="mailto:elfring@users.sourceforge.net" target="_blank">elfring@users.sourceforge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I expect that exception handling is usually supported by a C++ program.<br>
I wonder why your function "main" does not contain corresponding try and catch<br>
instructions so far.<br>
<a href="https://bitbucket.org/multicoreware/x265/src/d11de33521cf/source/x265.cpp#cl-481" target="_blank">https://bitbucket.org/multicoreware/x265/src/d11de33521cf/source/x265.cpp#cl-481</a><br>
<br>
How do you think about descriptions from software developers like the following?<br>
- Matthew Wilson<br>
  <a href="http://accu.org/index.php/journals/1706" target="_blank">http://accu.org/index.php/journals/1706</a><br>
<br>
- Danny Kalev<br>
  <a href="http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=108" target="_blank">http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=108</a></blockquote><div><br></div><div>Interesting point.</div>
<div><br></div><div>Our library does not define any exceptions, nor does it explicitly throw any.  So the only exceptions emitted by the library will be divide-by-zero and other things that indicate bugs that we probably don't want to catch unless there was a way to report a stack trace or something else useful.</div>
<div><br></div><div>Most users of x265 will not use our CLI wrapper, they will use us as a library and thus they would need to catch exceptions from our API calls at whatever level is appropriate to them.</div><div> </div>
</div>-- <br>Steve Borho
</div></div>