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

memory: Workaround possible compilation failures #26

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

stotko
Copy link
Owner

@stotko stotko commented Nov 21, 2019

thrust uses an optimization within the uninitialized_fill function in case the type T has a trivial copy constructor. However, as they actually perform copy assignment rather than copy construction, this may cause compilation failures for types T that have a copy constructor but no copy assignment operator. Since the detection code for this mechanism also differs for different compilers, the behavior is rather unpredictable. Define an own internal version of uninitialized_fill to workaround this issue.

@stotko stotko merged commit 8abb4fe into master Nov 21, 2019
@stotko stotko deleted the memory_initialization_workaround branch November 21, 2019 09:32
@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