Modularize the source code.
This makes greeting generation separate from greeting output, which
makes it easier to unit-test greeting generation.
Change-Id: Ice07f45ed0e9274bd4d4b3cd031cb37fffd34a5e
diff --git a/mod/greeting.cpp b/mod/greeting.cpp
new file mode 100644
index 0000000..a8101b8
--- /dev/null
+++ b/mod/greeting.cpp
@@ -0,0 +1,13 @@
+#include "greeting.hpp"
+
+#include <sstream>
+
+namespace greeting {
+
+std::string make_greeting(std::string const& greetee) {
+ std::ostringstream out;
+ out << "Hello " << greetee << "!";
+ return out.str();
+}
+
+}