Remix.run Logo
mistivia 2 hours ago

Template metaprogramming isn't really suited for this task, the prime sieve here serves only as a proof of concept, meant to show the capabilities of this style. But there are cases where `constexpr` is not applicable, especially when involving type manipulations.

On the other hand, C++ template metaprogramming, as an esolang, is fun to tame and experiment with.

jjmarr 2 hours ago | parent [-]

Is there a clearer example where constexpr wouldn't work?

> On the other hand, C++ template metaprogramming, as an esolang, is fun to tame and experiment with.

Is it an esolang at this point? I feel old.