Ambiguity while using recursive template function #258
Unanswered
jellllly420
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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