Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

2 replies

feddit.org

I was waiting for the expansion statements. I just wonder why they decided on the syntax template for instead of for constexpr or for consteval. Would be much more consistent IMO.

1

The main reason for the template keyword in the syntax is because the block is first parsed as a template, and then instantiated. This means you might have to use typename or template keywords in your code now.

1

You reached the end