I am trying to use enumerations of std::vector<bool> because i'd like to represent some values as a vector of bits.
So I tried the following code:
enum class ProximityStateEnum : std::vector<bool> {
Unknown = std::vector<bool>{false,false},
NotConnected = std::vector<bool>{false,true},
Connected = std::vector<bool>{true,false},
ConnectedButNotLatched = std::vector<bool>{true,true}
};
But when I compile the code with this, I get the error underlying type ‘std::vector<bool>’ of ‘ProximityStateEnum’ must be an integral type. How can I do to create an enum of vectors ?