Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / String / String.cpp
diff options
context:
space:
mode:
1 files changed, 7 insertions, 0 deletions
-rw-r--r--src/Generic/String/String.cpp7
diff --git a/src/Generic/String/String.cpp b/src/Generic/String/String.cpp
index 21e6619..0b3bf1f 100644
--- a/src/Generic/String/String.cpp
+++ b/src/Generic/String/String.cpp
@@ -75,3 +75,10 @@ int String::compare(const String& other) const {
char& String::operator[](unsigned index) {
return str[index];
}
+
+std::istream& operator>>(std::istream& istr, String& event) {
+ istr >> event.str;
+
+ return istr;
+}
+friend std::ostream& operator<<(std::ostream& ostr, const String& event);