Skip to content
Snippets Groups Projects
Commit aa0f2e0d authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: accept std::string for ISstream::getLine

parent fd54070c
Branches
Tags
No related merge requests found
......@@ -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());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment