...\include\xtensor\xsort.hpp(155,31): error C2397: conversion from 'unsigned __int64' to '_Ty' requires a narrowing conversion with
[
_Ty=ptrdiff_t
]
...\include\xtensor\xsort.hpp(204): message : see reference to function template instantiation 'auto xt::detail::flat_sort_impl<xt::pytensor<size_t,1,xt::layout_type::dynamic>,eval_type>(const xt::xexpression<D> &)' being compiled with
[
D=xt::pytensor<size_t,1,xt::layout_type::dynamic>
]
...\main.cpp(13): message : see reference to function template instantiation 'auto xt::sort<D>(const xt::xexpression<D> &,ptrdiff_t)' being compiled with
[
D=xt::pytensor<size_t,1,xt::layout_type::dynamic>
]
...\main.cpp(20): message : see reference to function template instantiation 'auto foo<xt::pytensor<size_t,1,xt::layout_type::dynamic>>(const T &)' being compiled with
[
T=xt::pytensor<size_t,1,xt::layout_type::dynamic>
]
on Windows. It works fine on macOS, and gives a very vague error message on Linux.
The following code
Gives:
on Windows. It works fine on macOS, and gives a very vague error message on Linux.
For full CI, see https://github.com/tdegeus/xtensor-python_examples/pull/1