On 2014-02-27, 7:40 AM, Neil wrote:
On 2014-02-24, 1:25 PM, Chris Peterson wrote:

To avoid developers and reviewers from having to remember special
cases, maybe MOZ_ARRAY_LENGTH should just be the standard everywhere.

They're not quivalent.

Would you mind xpanding on that?

Sure.  mozilla::ArrayLength has a special case for mozilla::Array

That's readily fixed.

template <typename T, size_t N>
char (&ArrayLengthHelper(const Array </mozilla-central/ident?i=Array><T
</mozilla-central/ident?i=T>, N </mozilla-central/ident?i=N>>& arr
</mozilla-central/ident?i=arr>ay))[N];

Want me to file a bug?

Sure.

But again, does fixing this enable you dogfood debug builds?

Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to