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

My current solution to std::vectors not being constexpr is initializing a std::array with an immediately invoked lambda expression. That lets me algorithmically determine the size of the array at compile-time, which is the main use I've wanted out of a constexpr std::vector.


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

Search: