nazerke
11/27/2019 - 6:34 AM

auto and type comparison

auto x = func();
printf("x is %s\n", x.c_str());
if(typeid(x) == typeid(string)) puts("x is string");