summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Consumer/consumer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Tutorial/Consumer/consumer.cxx')
-rw-r--r--Tests/Tutorial/Consumer/consumer.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Tutorial/Consumer/consumer.cxx b/Tests/Tutorial/Consumer/consumer.cxx
new file mode 100644
index 0000000..ae7877b
--- /dev/null
+++ b/Tests/Tutorial/Consumer/consumer.cxx
@@ -0,0 +1,11 @@
+// A simple function that computes the square root of a number
+#include <iostream>
+#include <sstream>
+#include <string>
+
+#include "MathFunctions.h"
+
+double string_square_root(std::string const& value)
+{
+ return mathfunctions::sqrt(std::stod(value));
+}