FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add rvalue qualified xstrided_view_base::storage by AntoinePrv · Pull Request #2413 · xtensor-stack/xtensor · GitHub

Repository navigation

Add rvalue qualified xstrided_view_base::storage - #2413

Draft
AntoinePrv wants to merge 1 commit into
xtensor-stack:masterfrom
AntoinePrv:storage
Draft

AntoinePrv wants to merge 1 commit into
xtensor-stack:masterfrom
AntoinePrv:storage

Conversation

Copy link
Copy Markdown
Contributor

Checklist

  • The title and commit message(s) are descriptive.
  • Small commits made to fix your PR have been squashed to avoid history pollution.
  • Tests have been added for new features or bug fixes.
  • API of new functions and classes are documented.

Description

Fixes #2401

AntoinePrv marked this pull request as draft July 13, 2021 19:42

Copy link
Copy Markdown
Contributor Author

@JohanMabille , I haven't been able to figure out this build error:

.../include/xtensor/xstrided_view_base.hpp:316:11: error: rvalue reference to type
'xt::xstrided_view_base<... >::storage_type' (aka 'xt::uvector<int, std::allocator<int> >')
cannot bind to lvalue of type 'xt::uvector<int, std::allocator<int> >'

I (sort of) understand rvalue references cannot bind to lvalue, but I don't understand why this is happening.

This branch has not been deployed

No deployments
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
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.

Add rvalue overload for xcontainer::storage

1 participant


Back | FazBrowse Home | New Git URL