-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CachedBitGenerator: value_type -> result_type to fix for libcxx
https://reviews.llvm.org/D120630 introduced a __libcpp_random_is_valid_urng check which requires return value to be in ::result_type (sidenote: that check goes beyond enforcing https://en.cppreference.com/w/cpp/numeric/random/uniform_random_bit_generator). Looking at an arbitrary generator in the standard library https://en.cppreference.com/w/cpp/numeric/random/independent_bits_engine , it also provides result_type, not value_type.
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters