mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix: random generator/distribution result type (add const)
This commit is contained in:
parent
1132d08f23
commit
2c9f0647f4
33 changed files with 342 additions and 123 deletions
|
@ -1023,7 +1023,7 @@ namespace sprout {
|
|||
|
||||
template<typename Char, typename Traits>
|
||||
SPROUT_CXX14_CONSTEXPR void
|
||||
copy_from_ptr(const Char* s, std::size_t len, std::size_t pos, std::size_t n, Char zero, Char one) {
|
||||
copy_from_ptr(Char const* s, std::size_t len, std::size_t pos, std::size_t n, Char zero, Char one) {
|
||||
reset();
|
||||
std::size_t const nbits = std::min(N, std::min(n, len - pos));
|
||||
for (std::size_t i = nbits; i > 0; --i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue