diff --git a/core/sstring.hh b/core/sstring.hh index 98f27e3b3cb9..c50006ab7d1a 100644 --- a/core/sstring.hh +++ b/core/sstring.hh @@ -513,6 +513,17 @@ operator<<(std::basic_ostream& os, return os.write(s.begin(), s.size()); } +template +inline +std::basic_istream& +operator>>(std::basic_istream& is, + basic_sstring& s) { + std::string tmp; + is >> tmp; + s = tmp; + return is; +} + namespace std { template