#include <map>
 
enum class Test{
    T1,
    T2
};
 
int main ( int argc, char** argv ){
    std::map<Test,float> t_map;
    Test e = Test::T1;
    float s = t_map[e];
}