summaryrefslogtreecommitdiff
path: root/hello/hello.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-22 10:28:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-22 10:28:37 +0200
commit1ae3f97f48b44488a2f70441e86a67bec8ba1177 (patch)
tree1aa3d7d7ade90d4287e84f477aae0e42f8419dbd /hello/hello.cxx
parent9ade866cc3a23138930cac8de37869026583667c (diff)
Use libformat and libprint to be more enterprise-grade and web-scale
Diffstat (limited to 'hello/hello.cxx')
-rw-r--r--hello/hello.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/hello/hello.cxx b/hello/hello.cxx
index 65d0aa7..46d9f6e 100644
--- a/hello/hello.cxx
+++ b/hello/hello.cxx
@@ -2,7 +2,8 @@
#include <hello/hello>
-#include <iostream>
+#include <format/format>
+#include <print/print>
using namespace std;
@@ -11,6 +12,6 @@ namespace hello
void
say (const string& n)
{
- cout << "Hello, " << n << '!' << endl;
+ print (format ("Hello", n));
}
}