Use a <a href="http://configure.ac">configure.ac</a> check?<br><div class="gmail_quote"><div dir="ltr">On Sun, 30 Aug 2015 at 01:26, Thorsten Behrens <<a href="mailto:thb@documentfoundation.org">thb@documentfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Daniel Robertson wrote:<br>
> --- a/include/o3tl/cow_wrapper.hxx<br>
> +++ b/include/o3tl/cow_wrapper.hxx<br>
> @@ -199,7 +199,10 @@ int cow_wrapper_client::queryUnmodified() const<br>
>          void release()<br>
>          {<br>
>              if( m_pimpl && !MTPolicy::decrementCount(m_pimpl->m_ref_count) )<br>
> -                boost::checked_delete(m_pimpl), m_pimpl = nullptr;<br>
> +            {<br>
> +                delete m_pimpl;<br>
> +                m_pimpl = nullptr;<br>
> +            }<br>
>          }<br>
><br>
Hi Stephan, all,<br>
<br>
Daniel reduced boost dependencies a bit with the above, nominally w/o<br>
losing functionality.<br>
<br>
I find -Werror=delete-incomplete for gcc and -Wdelete-incomplete for<br>
clang - that's supposedly a much more universal way of catching the<br>
issues checked_delete was there for?<br>
<br>
What's the best way to enable that in tinderboxes, I'm afraid<br>
gbuild-wide enabling might fail on older compilers?<br>
<br>
Cheers,<br>
<br>
-- Thorsten<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div>