I want to retrieve input with white spaces. This works:string a;
getline(cin, a);
But it doesn’t work if a is a TString. I get root [3] TString b;
root [4] getline(cin, b)
Error: Function getline(cin,b) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Any thoughts?
Thanks! This solved it:TString a;
a.ReadLine(std::cin);