You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or when we pass only one parameter into printf1 like printf1(1.1);, how does the compiler decide which template function to use?
I myself would prefer the version below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have read the chapter 2 of the tutorial and wonder now why the code below will not lead to ambiguity.
Or when we pass only one parameter into
printf1
likeprintf1(1.1);
, how does the compiler decide which template function to use?I myself would prefer the version below.
I'm new to cpp programing so any help is apprecited.
Beta Was this translation helpful? Give feedback.
All reactions