This gives compile errorCode:basic_string<T> lol, rofl; if(typeid(T) == typeid(wchar_t)) { lol = L"Time", rofl = L"Name"; } if(typeid(T) == typeid(char)) { lol = "Time", rofl = "Name"; }
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const char [5]' (or there is no acceptable conversion)
You know what I'm trying to do, wide string if the instatiation is unicode, narrowed if not. How do I express myself?