Boost logo

Boost :

Subject: [boost] [core] Breaking bugfix in scoped enums
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-06-06 18:41:44


While creating tests for scoped enums emulation I've fixed a bug which
resulted in the enums being convertible to int. This is a potentially breaking
change, the code like this will now not compile:

   red, green, blue

 void foo(boost::native_type<color>::type col);

 color col = color::blue;

The call to foo() should be done like this:


Previously, the conversion was implicit.

Boost list run by bdawes at, gregod at, cpdaniel at, john at