I want to know if it's possible to use an istream with >> but without skipping white spaces. As an example, if I try
using namespace std;
int main ()
cin >> noskipws >> s;
cout << s << endl;
with "Hello world" I obtain in s "Hello"
I would like to use >> instead of getline, because sometimes I have a string and sometimes some other data type. I would like to do an automatic type conversion.