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

> An empty initializer list should reasonably behave like a default constructor

True. But an empty initializer list should also behave like, you know, the constructor which uses an initializer list. C++ is in the unfortunate position of having to choose one behaviour or the other. Either choice is reasonable, but both can be confusing.



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

Search: