On Wed, Jul 1, 2015 at 7:39 AM, Aryeh Gregor <a...@aryeh.name> wrote:

> On Wed, Jul 1, 2015 at 6:24 AM, Joshua Cranmer 🐧 <pidgeo...@gmail.com>
> wrote:
> > You'd get the same benefit, I think, by making operator T*() && =
> delete;, syntax which is accepted on gcc 4.8.1+, clang, and MSVC 2015 IIRC.
>
> I once tried this and found it had problematic side effects that made
> deploying it difficult in practice.  I think one involved the ternary
> operator.  Unfortunately, I can't remember exactly what they were.  :(
>  Anyone who's interested can try for themselves by just adding that
> line to nsCOMPtr.h, recompiling, and seeing what breaks.
>

I tried this, fixed a few compilation errors, then decided this wasn't
worth it just yet and threw my work into a bug.  Comments appreciated:

https://bugzilla.mozilla.org/show_bug.cgi?id=1179451

-Nathan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to