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

invalid initialization of non-const reference of type X& from an rvalue of type X #4

Open
Delwin9999 opened this issue May 9, 2016 · 0 comments

Comments

@Delwin9999
Copy link

Delwin9999 commented May 9, 2016

There are a number of places where the return value of a function is being used as a parameter of another function that takes a reference.

While MSVC allows passing an r-value into an l-value it is not allowed by the C++ specification.

Additionally the NVK.h wrapper is consuming a number of parameters by non-const reference that the specification for the underlying Vulkan API is consuming by value. Is this intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant