libsimdpp icon indicating copy to clipboard operation
libsimdpp copied to clipboard

Compiler error with -std=c++17 on gcc

Open abique opened this issue 6 years ago • 2 comments

../../third-party/libsimdpp/simdpp/types/empty_expr.h: In instantiation of ‘simdpp::arch_sse3::mask_int32<N, simdpp::arch_sse3::expr_empty>::operator simdpp::arch_sse3::uint32<N>() const [with unsigned int N = 4]’:
../../third-party/libsimdpp/simdpp/detail/insn/cmp_neq.h:195:52:   required from here
../../third-party/libsimdpp/simdpp/types/empty_expr.h:220:52: error: could not convert ‘((const simdpp::arch_sse3::mask_int32<4, simdpp::arch_sse3::expr_empty>*)this)->simdpp::arch_sse3::mask_int32<4, simdpp::arch_sse3::expr_empty>::e’ from ‘const simdpp::arch_sse3::mask_int32<4>’ to ‘simdpp::arch_sse3::uint32<4>’
  220 |     SIMDPP_INL operator uint32<N>() const { return e; }
      |                                                    ^
      |                                                    |
      |                                                    const simdpp::arch_sse3::mask_int32<4>

abique avatar Oct 09 '19 16:10 abique

is this related to #137?

peabody-korg avatar Mar 23 '21 03:03 peabody-korg

This is fixed with https://github.com/p12tic/libsimdpp/pull/118 but only in dev branch ...

martin-g avatar Sep 30 '22 11:09 martin-g