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 function template specializations #1462

Conversation

Projects
3 participants
@wezrule
Copy link
Collaborator

commented Dec 15, 2018

Function template specializations are not candidates for overload resolution, and should be avoided where possible. Herb Sutter describes the Dimov/Abrahams example explaining why:
http://www.gotw.ca/publications/mill17.htm

A recent detailed talk summarising the issues during CppCon2018 can be found here

Typed template parameters can just have the type substituted directly using standard function overloading.

@clemahieu

This comment has been minimized.

Copy link
Collaborator

commented Dec 15, 2018

Good to learn!

@clemahieu clemahieu merged commit ec8b44e into nanocurrency:master Dec 15, 2018

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@rkeene rkeene added this to the V18.0 milestone Dec 16, 2018

@wezrule wezrule deleted the wezrule:remove_function_template_specializations branch Dec 16, 2018

@zhyatt zhyatt added this to Unscheduled in V18 Dec 27, 2018

@zhyatt zhyatt moved this from Unscheduled to CP 0 in V18 Jan 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.