Gitiles
Code Review
Sign In
gerrit.benkard.de
/
hello-world-ng
/
f59e0976a8c575fb46a2d6dce0a8e8ef63a90dd2
/
.
/
mod
/
greeting.cpp
blob: 62ebb2dcf69d7b176b31ce2f0cfe77cd17cfc7ff [
file
] [
log
] [
blame
]
#include
"greeting.hpp"
#include
<sstream>
namespace
greeting
{
std
::
string make_greeting
(
std
::
string
const
&
greetee
)
{
if
(
greetee
==
""
)
{
return
"Hello!"
;
}
else
{
std
::
ostringstream out
;
out
<<
"Hello "
<<
greetee
<<
"!"
;
return
out
.
str
();
}
}
}