blob: 62ebb2dcf69d7b176b31ce2f0cfe77cd17cfc7ff [file] [log] [blame]
Matthias Andreas Benkard38610ae2018-04-10 20:39:24 +02001#include "greeting.hpp"
2
3#include <sstream>
4
5namespace greeting {
6
7std::string make_greeting(std::string const& greetee) {
Matthias Andreas Benkarde0f35b12018-04-10 21:15:20 +02008 if (greetee == "") {
9 return "Hello!";
10 } else {
11 std::ostringstream out;
12 out << "Hello " << greetee << "!";
13 return out.str();
14 }
Matthias Andreas Benkard38610ae2018-04-10 20:39:24 +020015}
16
17}