aboutsummaryrefslogtreecommitdiff
path: root/ttwhy
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-06-17 09:05:21 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-06-17 09:13:11 +0200
commit9c09097156dc70315364d27e61daef19b2844139 (patch)
tree6829c5a52dde09dab3447f39e9e754c208dbe3f4 /ttwhy
downloadttwhy-9c09097156dc70315364d27e61daef19b2844139.tar.xz
ttwhy-9c09097156dc70315364d27e61daef19b2844139.zip
initial commit
Diffstat (limited to 'ttwhy')
-rw-r--r--ttwhy/lib.cppm11
-rw-r--r--ttwhy/main.cpp14
2 files changed, 25 insertions, 0 deletions
diff --git a/ttwhy/lib.cppm b/ttwhy/lib.cppm
new file mode 100644
index 0000000..c7527ee
--- /dev/null
+++ b/ttwhy/lib.cppm
@@ -0,0 +1,11 @@
+export module ttwhy;
+
+namespace ttwhy
+{
+
+ export auto multiply(int lhs, int rhs) -> int
+ {
+ return lhs * rhs;
+ }
+
+} // namespace ttwhy
diff --git a/ttwhy/main.cpp b/ttwhy/main.cpp
new file mode 100644
index 0000000..fdaba88
--- /dev/null
+++ b/ttwhy/main.cpp
@@ -0,0 +1,14 @@
+#include <asio/io_context.hpp>
+
+#include <print>
+
+import ttwhy;
+
+auto main() -> int
+{
+ auto context = asio::io_context{};
+
+ std::println("The answer is {}", ttwhy::multiply(6, 7));
+
+ context.run();
+}