edwadli / note-hashtag

3 stars 0 forks source link

Templating on int arguments doesn't work #147

Closed kevin1 closed 8 years ago

kevin1 commented 8 years ago

If we write a function and call it with both int and float, in c++ the call is ambiguous because int64_t can be promoted to double.

This could be resolved by casting