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

atomic: Fix missing template type names in the function definitions #30

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

stotko
Copy link
Owner

@stotko stotko commented Nov 22, 2019

The arithmetic and bit operations of atomic and atomic_ref use SFINAE to properly disable these operations for non-arithmetic types. Since the helper template types of these member functions are only used for SFINAE, their names were ignored in the member function definitions. Although this seems to be valid C++ code, some compilers may have problems to deduce the types. Also mention the template type names in the member function definitions to fix this issue.

@stotko stotko merged commit db4c597 into master Nov 22, 2019
@stotko stotko deleted the atomic_template_fix branch November 22, 2019 13:08
@stotko stotko added the bug label Dec 11, 2019
@stotko stotko added this to the 1.1.0 milestone Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant