imneme / pcg-cpp

PCG — C++ Implementation
Apache License 2.0
745 stars 99 forks source link

Fix MSVC errors in operator>> #88

Open bdegreve opened 11 months ago

bdegreve commented 11 months ago

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