Closed arrowd closed 7 months ago
This sounds familiar…
There it is... someone posted this a few years ago as a problem on Windows with MSVC 2015 (#42), and when I tried it with a later version of MSVC, it worked for me. So I assumed it was a Microsoft thing.
But looking at the class definition, apparently std::uniform_int_distribution<T>
is only defined for T
as a short
, int
, long
, or long long
(signed or unsigned).
[edit] Oh, and apparently I already knew this, when that same person sent in a PR (#43) to fix it... but just for the examples that compile on Windows! Forgot it was also in the example(s) for UNIX-domain sockets.
Fixed in v0.8.2
With Clang and libc++ 16.0.6 I get: