Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant