Hacker News new | ask | show | jobs
by secondcoming 1118 days ago
Like this maybe?

https://godbolt.org/z/6fnhT6h9v

1 comments

Yeah I was using godbolt too and wondered why I could not get it to compile. Just funny the article is about c++17 but you need c++20 on there to get it to compile.

My c++ is super old. But thanks that is great I could not figure it out.

It should work in C++17 too, the compile settings are just left over from something else I was doing on CE.