From 18df6e1fa4b615d93f380166556273b6e178eae2 Mon Sep 17 00:00:00 2001
From: Sandipan Mohanty <s.mohanty@fz-juelich.de>
Date: Wed, 10 May 2023 15:10:44 +0200
Subject: [PATCH] add no_textsub.cc

---
 day3/examples/no_textsub.cc | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 day3/examples/no_textsub.cc

diff --git a/day3/examples/no_textsub.cc b/day3/examples/no_textsub.cc
new file mode 100644
index 0000000..64e5097
--- /dev/null
+++ b/day3/examples/no_textsub.cc
@@ -0,0 +1,12 @@
+template <unsigned N> constexpr unsigned fact = N * fact<N-1>;
+template <> constexpr unsigned fact<0> = 1U;
+static_assert(fact<7> == 5040);
+template <class A, class B>
+constexpr auto are_same = false;
+template <class A>
+constexpr auto are_same<A, A> = true;
+//static_assert(are_same<int, unsigned int>);
+using Integer = int;
+static_assert(are_same<int, Integer>);
+auto main() -> int {}
+
-- 
GitLab