oneapi-src / oneDPL

oneAPI DPC++ Library (oneDPL) https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/dpc-library.html
Apache License 2.0
720 stars 114 forks source link

[RNG] Fixed failures in ranlux_24_48_base and ranlux_24_48 tests of subtract_with_carry and discard_block engines #1737

Closed egrabovskaya closed 1 month ago

egrabovskaya commented 1 month ago

Since operator>> takes the engine with template parameters for subtract_with_carry_engine and discard_block_engine classes we have multiple competing definitions in the same namespace when 2 or more of these engine types are instantiated. Therefore, it's necessary to move the definition outside of the class, then it's only defined once, and add its declaration before the class definition.

timmiesmith commented 1 month ago

Thank you for the quick work on this issue!