aboutsummaryrefslogtreecommitdiff
path: root/week12/Exercise1/Publication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'week12/Exercise1/Publication.cpp')
-rw-r--r--week12/Exercise1/Publication.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/week12/Exercise1/Publication.cpp b/week12/Exercise1/Publication.cpp
new file mode 100644
index 0000000..872c3ba
--- /dev/null
+++ b/week12/Exercise1/Publication.cpp
@@ -0,0 +1,5 @@
+#include "Publication.h"
+
+std::ostream& operator<<(std::ostream& ostr, const Publication& other) {
+ return ostr << "From " << other.authors << " in " << other.journal;
+}