p12tic / libsimdpp

Portable header-only C++ low level SIMD library
Boost Software License 1.0
1.24k stars 129 forks source link

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

Open abique opened 5 years ago

abique commented 5 years ago
../../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>
peabody-korg commented 3 years ago

is this related to #137?

martin-g commented 2 years ago

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