Skip to content

Add make_batch_constant from std::array in C++20 - #1256

Merged
JohanMabille merged 2 commits into
xtensor-stack:masterfrom
AntoinePrv:batch-constant-nttp
Feb 19, 2026
Merged

JohanMabille merged 2 commits into
xtensor-stack:masterfrom
AntoinePrv:batch-constant-nttp

Conversation

@AntoinePrv

Copy link
Copy Markdown
Contributor

Porposal to add std::array to make_batch_constant when building with C++ 20.

@serge-sans-paille

Copy link
Copy Markdown
Contributor

I'm fine with it, please just add a test case ;-)

@serge-sans-paille

Copy link
Copy Markdown
Contributor

(this requires a C++20 bot, but I'm fine with having this just to make sure we are C++20 compatible too)

@AntoinePrv

Copy link
Copy Markdown
Contributor Author

I added the test. There is already a CI job for testing with C++17 and C++20.

@JohanMabille JohanMabille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you also provide a test for make_batch_bool_constant ?

@JohanMabille
JohanMabille merged commit 548b05f into xtensor-stack:master Feb 19, 2026
70 checks passed
@AntoinePrv
AntoinePrv deleted the batch-constant-nttp branch February 19, 2026 16:30
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.

3 participants