blob: 0fb811d111eeb9af26a9b56755626bb690f70872 [file] [log] [blame]
Matthias Andreas Benkardeffabc92018-04-10 22:22:45 +02001#include <greeting/greeting.hpp>
Matthias Andreas Benkard38610ae2018-04-10 20:39:24 +02002
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}