Error while generate DNA with uniform()
acehreli at yahoo.com
Sat Sep 3 21:09:09 UTC 2022
On 9/3/22 07:25, Steven Schveighoffer wrote:
> There is probably a bug in generate when the element type is an `enum`
> which somehow makes it const.
Yes, Generator is missing an Unqual:
Salih had asked:
>> Can we solve this issue with our own `generate()` structure?
Yes, I did the following to determine that adding Unqual was a solution:
- Copy generate() functions to your source file,
- Copy the Generator struct to your source file,
- Edit the definition of Generator's elem_ member as I hinted in the bug.
More information about the Digitalmars-d-learn