```cpp #include <string> void f(std::string type) { const char Type = type[0]; } ``` https://godbolt.org/z/ae3efnTvs