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. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform