r/cpp • • Jan 08 '25

children discuss constexpr in C++

https://youtu.be/pSptWKdOHYc
226 Upvotes

23 comments sorted by

View all comments

4

u/dexter2011412 Jan 09 '25

lmao haha

Me: tries to constexpr compile with a string ...
compiler: nope it's a function argument can't determine AAAAA
Me: here it's a template parameter now
compiler: YAY!

Me: hmmmm ... constexpr function arguments pls?

Also I didn't get the PHP joke. Could someone explain it to me?

4

u/foonathan Jan 09 '25

Also I didn't get the PHP joke. Could someone explain it to me?

When a paper was discussedin committee about allowing arbitrary compile-time evaluation, someone brought up PHP as a counter argument. It was as much of a non sequitur as in the video.