Skip to content

Universal References - #66

Open
nileshchat wants to merge 2 commits into
mainfrom
universal-reference
Open

Universal References#66
nileshchat wants to merge 2 commits into
mainfrom
universal-reference

Conversation

@nileshchat

Copy link
Copy Markdown
Owner

The arguments need to be able to accept both lvalue and rvalue.

@nileshchat nileshchat linked an issue Apr 24, 2025 that may be closed by this pull request
@nileshchat
nileshchat requested a review from devreal April 25, 2025 16:21
TensorView<T, NDIM>& result,
const TensorView<T, NDIM>&& t,
const TensorView<T, 2>&& c,
TensorView<T, NDIM>&& result, /* make arguments universal references*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work with template-template parameters? I think it would be easier to have a regular template parameter TensorViewT and take that as TensorViewT&&. We can add a constraint later to check that it's actually a TensorView.

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

Successfully merging this pull request may close these issues.

Universal References

2 participants