Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ch2 - default template parameters #194

Merged
merged 2 commits into from Jul 7, 2021
Merged

Remove ch2 - default template parameters #194

merged 2 commits into from Jul 7, 2021

Conversation

Copy link
Contributor

@QuarticCat QuarticCat commented Jul 7, 2021

Description

The example of this section is incorrect. It is totally OK to just write add(1, 3) without default parameters even in C++98, since the compiler will deduce the type.

What's more, this feature is even not a C++11 feature. So I just delete it.

Change List

As the title shows

Reference

https://en.cppreference.com/w/cpp/language/template_parameters

https://en.cppreference.com/w/cpp/language/template_argument_deduction

Copy link
Owner

@changkun changkun left a comment

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants