3 ms·
In his first factorial example, he could've avoided templates altogether with constexpr: https://godbolt.org/g/ZaoMNa https://godbolt.org/g/ZaoMNa Or just use
by bluescarni 9y ago
In his first factorial example, he could've avoided templates altogether with constexpr:
https://godbolt.org/g/ZaoMNa https://godbolt.org/g/ZaoMNa
Or just use a template specialisation:
https://godbolt.org/g/TVkHMd https://godbolt.org/g/TVkHMd