Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
AnimalMuppet
on Jan 5, 2019
|
parent
|
context
|
favorite
| on:
Initialization in C++ is Seriously Bonkers
The
optimal
code for const int i = 0; is for the compiler to inline its uses, and for there never to be any storage allocated at all.
;-)
comex
on Jan 5, 2019
[–]
That works unless you use &i somewhere.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
;-)