C
Chris Forone
is it possible to use enum class as index in std::vector or
std::valarray without explicit conversation? ms vs express 2012 do not
compile something like:
enum class Coordinate : std::size_t { X, Y, Z };
std::valarray<float> position(3);
position[Coordinate::X] = 1.0f;
old style (without class) does!
thanks & greetings, chris
std::valarray without explicit conversation? ms vs express 2012 do not
compile something like:
enum class Coordinate : std::size_t { X, Y, Z };
std::valarray<float> position(3);
position[Coordinate::X] = 1.0f;
old style (without class) does!
thanks & greetings, chris