2014-04-28 0:18 GMT-04:00 Birunthan Mohanathas <birunt...@mohanathas.com>:

> Bugs 900903 and 900908 introduced variadic variants of
> NS_IMPL_ISUPPORTS, NS_IMPL_QUERY_INTERFACE, NS_IMPL_CYCLE_COLLECTION,
> etc. and removed the old numbered macros. So, instead of e.g.
> NS_IMPL_ISUPPORTS2(nsFoo, nsIBar, nsIBaz), simply use
> NS_IMPL_ISUPPORTS(nsFoo, nsIBar, nsIBaz) instead. Right now, the new
> macros support up to 50 variadic arguments.
>

Awesome, congrats, and thanks!

Question: is there a plan to switch to an implementation based on variadic
templates when we will stop supporting compilers that don't support them?
Do you know when that would be (of the compilers that we currently support,
which ones don't support variadic templates?)

Benoit


>
> Note that due to technical details, the new macros will reject uses
> with zero variadic arguments. In such cases, you will want to continue
> to use the zero-numbered macro, e.g. NS_IMPL_ISUPPORTS0(nsFoo).
>
> Cheers,
> Biru
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to