ranges: Fix compilation 64-bit index type by stotko · Pull Request #157 · stotko/stdgpu (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation1 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@stotko

In #102, a index64_t constructor has been added to the ranges classes and the old index_t constructors have been deprecated. However, if the latter coincides with the former, i.e. STDGPU_USE_32_BIT_INDEX is set to OFF, this results in compilation errors due to rereclarations and redefinitions. Fix this error by conditionally enabling the deprecated index_t version.

@stotko

@codecov

@stotko stotko deleted the ranges_64_bit_index_fix branch

May 10, 2020 13:47

Labels

2 participants

@stotko