xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

Building xtensor with c++20 and tests enabled fails

Open vakokako opened this issue 3 years ago • 2 comments

In c++20 std::allocator::reference was removed, but the xt::tracking_allocator uses it with using reference = typename A::reference; which results in error:

.../xtensor/xutils.hpp:731:39: error: no type named 'reference' in 'std::allocator<double>'
        using reference = typename A::reference;
                          ~~~~~~~~~~~~^~~~~~~~~

vakokako avatar Dec 15 '21 18:12 vakokako

xt::tile fails with bad_alloc too, though U am not sure what the source of this problem is, just throwing it out there

ImJustAskingDude avatar Mar 06 '22 12:03 ImJustAskingDude

Looks like a duplicate of #2504. C++20 is not supported.

spectre-ns avatar Apr 13 '22 01:04 spectre-ns