Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moregrist
6 days ago
|
parent
|
context
|
favorite
| on:
How well do you know C++ auto type deduction?
I prefer to put the `using` in the block where you need the std::chrono code, which keeps it local and tidy. Putting it in a header is declaring a global type and asking for trouble; at least bound it in a namespace or a class.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: