diff --git a/day3/examples/no_textsub.cc b/day3/examples/no_textsub.cc new file mode 100644 index 0000000000000000000000000000000000000000..64e5097e3156445db8f2e1b7b83e0614e94634a4 --- /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 {} +