xtensor-stack / xtensor

C++ tensors with broadcasting and lazy computing
BSD 3-Clause "New" or "Revised" License
3.36k stars 398 forks source link

Update for C++ 20 compatibility #2774

Closed laramiel closed 4 months ago

laramiel commented 8 months ago

Description

C++ 20 deprecates some std::allocator members. This PR updates xtensor allocators to work with C++20.

https://en.cppreference.com/w/cpp/memory/allocator

laramiel commented 8 months ago

I think that the build checks need to be re-run.

tdegeus commented 8 months ago

Thanks! Looks good to me.

JohanMabille commented 4 months ago

Thanks! and sorry for the late review