<div dir="ltr"><div>I just noticed the documentation says</div><div>> <span style="white-space:pre-wrap">The callable shouldn't throw when executed, copied or moved.</span></div><div>, which brings a question: is there really a particular reason to copy QScopeGuard instance? what the expected behavior for the instance copy then, call f in some other place?</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Konstantin</div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 21 февр. 2020 г. в 20:58, Thiago Macieira <<a href="mailto:thiago.macieira@intel.com">thiago.macieira@intel.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Friday, 21 February 2020 06:02:29 PST NIkolai Marchenko wrote:<br>
> it's definitely neat, but it's nothing that you can't do with pure c++<br>
> though. It's just qt's native implementation of score guard pattern. Tbh I<br>
> didn't even know it existed because I use my own scope guarder class.<br>
<br>
The reason we added it was because we needed and the Standard Library <br>
equivalent isn't (wasn't) available in all platforms Qt needed to be compiled <br>
on.<br>
<br>
-- <br>
Thiago Macieira - thiago.macieira (AT) <a href="http://intel.com" rel="noreferrer" target="_blank">intel.com</a><br>
  Software Architect - Intel System Software Products<br>
<br>
<br>
<br>
_______________________________________________<br>
Development mailing list<br>
<a href="mailto:Development@qt-project.org" target="_blank">Development@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/development" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/development</a><br>
</blockquote></div>