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

Add missing default xbuffer_adaptor by lavaux · Pull Request #2777 · xtensor-stack/xtensor · GitHub

Repository navigation

Add missing default xbuffer_adaptor - #2777

Open
lavaux wants to merge 1 commit into
xtensor-stack:masterfrom
lavaux:features/shared_xbuffer
Open

lavaux wants to merge 1 commit into
xtensor-stack:masterfrom
lavaux:features/shared_xbuffer

Conversation

lavaux commented Mar 26, 2024 •
edited
Loading

Copy link
Copy Markdown

This pull request fixes the support for shared pointer by xtensor_adaptor/xbuffer_adaptor. The default constructor was declared but not implemented. A default implementation is sufficient. Also the move operators are brought

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

This small correction fix a link error when shared_ptr backing storage is used. It transforms an explicit constructor to a default constructor, otherwise the implementation is missing.

This pull request also adds unit tests for xbuffer_adaptor and xtensor_adaptor when a shared_ptr is used for backing storage. It tests the compilability and the semantic.

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.

1 participant


Back | FazBrowse Home | New Git URL