Re: nsresult is now a strongly typed enum

2012-10-15 Thread Ted Mielczarek
On Mon, Oct 15, 2012 at 8:11 AM, Aryeh Gregor wrote: > On Mon, Oct 15, 2012 at 2:09 PM, Ted Mielczarek wrote: >> On Sat, Oct 13, 2012 at 12:48 PM, Ehsan Akhgari >> wrote: >>> This is currently enabled on all compilers which support strongly typed >>> enums (recent clang, gcc >= 4.4, and Visual

Re: nsresult is now a strongly typed enum

2012-10-15 Thread Aryeh Gregor
On Mon, Oct 15, 2012 at 2:09 PM, Ted Mielczarek wrote: > On Sat, Oct 13, 2012 at 12:48 PM, Ehsan Akhgari > wrote: >> This is currently enabled on all compilers which support strongly typed >> enums (recent clang, gcc >= 4.4, and Visual C++ 2012). > > So this is all of our official builds except

Re: nsresult is now a strongly typed enum

2012-10-15 Thread Ted Mielczarek
On Sat, Oct 13, 2012 at 12:48 PM, Ehsan Akhgari wrote: > This is currently enabled on all compilers which support strongly typed > enums (recent clang, gcc >= 4.4, and Visual C++ 2012). So this is all of our official builds except for Windows right now? -Ted _

nsresult is now a strongly typed enum

2012-10-13 Thread Ehsan Akhgari
For the past few months, Aryeh has been doing a heroic work on making nsresult a strongly typed enum (aka, enum class). Strongly typed enums are a new feature in C++11 which enable declaring enums which are treated as real types by the compiler and go through similar type checking as other typ