Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
david-given
on March 18, 2017
|
parent
|
context
|
favorite
| on:
C++ value category cheat-sheet [pdf]
But why is that bad?
lmitchell
on March 18, 2017
|
next
[–]
Because `i` isn't an int, it's an initializer_list, and you almost never want to actually create an initializer_list instead of an int? Seems pretty understandable to me.
thecpphorse
on March 18, 2017
|
prev
[–]
It's unexpected. Nobody ever* wanted to assign an initializer list to a named variable.
[*] pretty much
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: