altf4 / RealTimeTactics

Real Time Tactics (RTT) Game
GNU General Public License v3.0
6 stars 4 forks source link

Eliminate warning for scoped enums #5

Closed altf4 closed 12 years ago

altf4 commented 12 years ago

In the common code, we use a scoped enum type. (Where you specify the exact data type) Which apparently is only available as of c++0x. Which is totally fine, but it produces a compiler warning. (Which we wan to eliminate):

warning: scoped enums only available with -std=c++0x or -std=gnu++0x

But when you throw in the "-std=c++0x" compiler flag, a whole slew of build errors ensue.

Try to figure out wtf is going on, here.

altf4 commented 12 years ago

Fixed in d22daabd92208b8a349ea743a9d38e5b5f8fc41f