mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: accept std::string for ISstream::getLine
This commit is contained in:
@ -134,7 +134,7 @@ public:
|
||||
inline int peek();
|
||||
|
||||
//- Raw, low-level getline into a string function.
|
||||
inline ISstream& getLine(string& str);
|
||||
inline ISstream& getLine(std::string& str);
|
||||
|
||||
//- Raw, low-level putback character function.
|
||||
inline ISstream& putback(const char c);
|
||||
|
||||
@ -72,7 +72,7 @@ inline int Foam::ISstream::peek()
|
||||
}
|
||||
|
||||
|
||||
inline Foam::ISstream& Foam::ISstream::getLine(string& str)
|
||||
inline Foam::ISstream& Foam::ISstream::getLine(std::string& str)
|
||||
{
|
||||
std::getline(is_, str);
|
||||
setState(is_.rdstate());
|
||||
|
||||
Reference in New Issue
Block a user