Skip to content

Conversation

@bdegreve
Copy link

Hi,

I've found these two compiler errors while trying to use operator>> with pcg_engines::cm_setseq_dxsm_128_64 on MSVC. The extra casts resolve the errors.

include\pcg_random.hpp(621,13): error C2678: binary '!=': no operator found which takes a left-hand operand of type 'pcg_extras::pcg128_t' (or there is no acceptable conversion)
include\pcg_random.hpp(336,34): error C2678: binary '|': no operator found which takes a left-hand operand of type 'pcg_extras::uint_x4<uint32_t,uint64_t>' (or there is no acceptable conversion)

Kind regards,
Bram

Using operator>> failed to compile with pcg_engines::cm_setseq_dxsm_128_64
with following errors (MSVC 2022 (17.7.3) with /std:c++20):

  include\pcg_random.hpp(621,13): error C2678: binary '!=': no operator found which takes a left-hand operand of type 'pcg_extras::pcg128_t' (or there is no acceptable conversion)

  include\pcg_random.hpp(336,34): error C2678: binary '|': no operator found which takes a left-hand operand of type 'pcg_extras::uint_x4<uint32_t,uint64_t>' (or there is no acceptable conversion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant