Typescript Variable Within Stringstream Cppreference Enumeration