Skip to content

initial value of reference to non-const must be an lvalue #1

@soumik12345

Description

@soumik12345

Hi, I was trying to follow the excellent article by @straaljager. While trying to run this codebase using Cuda 11, I am getting the following error:
main.cu(191): error: initial value of reference to non-const must be an lvalue
Can someone please suggest how to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions