On Thu, Aug 9, 2012 at 5:29 AM, Aryeh Gregor <a...@aryeh.name> wrote:
> This instructs the compiler to allocate only one byte of storage for Foo, to 
> save space.  Otherwise, the compiler is entitled to allocate anywhere from 
> one byte to the size of an int, and gcc in practice will allocate four bytes. 
>  Compilers that support this include gcc 4.4 and up, Clang 2.9 and up, and 
> VC++ 2005 and up.  On other compilers, it will have no effect.

Sounds like we ought to be able to just rely on compiler support once
we drop support for GCC < 4.4 (probably after the Firefox 17 uplift).

> Compilers that support scoped enumerations include gcc 4.4 and up, Clang 2.9 
> and up, and VC++ 2011 and later.  In compilers that don't support the feature 
> natively, a workaround using a regular enum nested in a class is used.  This 
> will give the same scoping behavior, but not as much type safety.

Did you mean VC++ 2010 or 2012? There's no version called 2011. (VC
2010 is VC 10.0, and VC 2012 is VC 11.0, confusingly.)

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

Reply via email to