summaryrefslogtreecommitdiff
path: root/libhello/libhello/hello.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-20 08:52:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-20 08:52:55 +0200
commitbffe85ae4c01f126c47ab7ea7b220b91d7c65dac (patch)
treef08c6bae79151cf0d1c36ecee46573e586490af8 /libhello/libhello/hello.hxx
parentf089a1a2321e77bfb5f60c2cd79dac14eac9bf63 (diff)
Make slightly more interesting
Diffstat (limited to 'libhello/libhello/hello.hxx')
-rw-r--r--libhello/libhello/hello.hxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/libhello/libhello/hello.hxx b/libhello/libhello/hello.hxx
index ccc43c2..d9e41d9 100644
--- a/libhello/libhello/hello.hxx
+++ b/libhello/libhello/hello.hxx
@@ -11,18 +11,19 @@
namespace hello
{
// If you compare this interface to version 1.0, then you will notice that
- // while it is API/source-compatible (the signature of say() is unchanged)
- // it is not ABI/binary-compatible (say() is now inline).
+ // while it is API/source-compatible (the call via the old signature of
+ // say() is still valid) it is not ABI/binary-compatible (say() now has an
+ // extra argument and is inline).
//
- // Notice also that inline say() calls format() which means libformat is an
- // interface dependency of libhello.
+ // Notice also that inline say() now uses a type and calls a function from
+ // format which means libformat is an "interface dependency" of libhello.
LIBHELLO_EXPORT void
say_formatted (const std::string& message);
inline void
- say (const std::string& name)
+ say (const std::string& name, format::volume v = format::volume::normal)
{
- say_formatted (format ("Hello", name));
+ say_formatted (format::message ("Hello", name, v));
}
}