diff options
Diffstat (limited to 'absl/random/bit_gen_ref.h')
-rw-r--r-- | absl/random/bit_gen_ref.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/random/bit_gen_ref.h b/absl/random/bit_gen_ref.h index 59591a479d8c..e8771162e5fb 100644 --- a/absl/random/bit_gen_ref.h +++ b/absl/random/bit_gen_ref.h @@ -132,7 +132,7 @@ namespace random_internal { template <> struct DistributionCaller<absl::BitGenRef> { - template <typename DistrT, typename... Args> + template <typename DistrT, typename FormatT, typename... Args> static typename DistrT::result_type Call(absl::BitGenRef* gen_ref, Args&&... args) { auto* mock_ptr = gen_ref->mocked_gen_ptr_; @@ -140,7 +140,8 @@ struct DistributionCaller<absl::BitGenRef> { DistrT dist(std::forward<Args>(args)...); return dist(*gen_ref); } else { - return mock_ptr->template Call<DistrT>(std::forward<Args>(args)...); + return mock_ptr->template Call<DistrT, FormatT>( + std::forward<Args>(args)...); } } }; |