Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is creating a bunch of objects, modifying them, then asserting their value all at compile time. For example the first example creates a list and asserts its size is 0. List normally allocated on heap, so I am guessing they have made changes in thay area in c++20 by making it Constexpr, which is a fancy way to say an expression can be known at compile time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: