Opened 21 years ago
Closed 21 years ago
#926 closed Bugs (Rejected)
Problem with seed interface
Reported by: | nobody | Owned by: | jmaurer |
---|---|---|---|
Milestone: | Component: | random | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
For a random number generator x, you can call x.seed(s) where s is either an integer of the appropriate type, or a generator. This overloading causes a problem, because if s an integer type other than the DataType for x, the compiler matches it with the overload that takes a generator argument, producing a very puzzling compiler error.
Note:
See TracTickets
for help on using tickets.