Skip to content

Commit 85179e5

Browse files
Update include/xtensor/views/xslice.hpp
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
1 parent 31d1981 commit 85179e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/xtensor/views/xslice.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ namespace xt
484484
template <class R = std::ptrdiff_t, class T>
485485
inline auto drop(T&& indices)
486486
{
487-
if constexpr (xtl::is_integral<std::decay_t<T>>::value)
487+
if constexpr (xtl::is_integral<std::remove_cvref_t<T>>::value)
488488
{
489489
using slice_type = xdrop_slice<R>;
490490
using container_type = typename slice_type::container_type;

0 commit comments

Comments
 (0)