Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bstamour
on March 31, 2018
|
parent
|
context
|
favorite
| on:
The joy of max()
No it won't. You'll get a compile time error, as T could either deduce to int or double. Unless you explicitly specify it as max<int>(1, 2.0) or max<double>(1, 2.0).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: