From edf49873fd0d9cac7a9addd627cde0fe5d62c58c Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 10 Apr 2020 22:24:10 -0700 Subject: Made FastRand and FastRandReal ctors explicit --- Common/interface/FastRand.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/FastRand.hpp b/Common/interface/FastRand.hpp index da3822c1..aed0c23a 100644 --- a/Common/interface/FastRand.hpp +++ b/Common/interface/FastRand.hpp @@ -42,7 +42,7 @@ public: static constexpr StateType Max = 0x7FFF; - FastRand(StateType Seed) : + explicit FastRand(StateType Seed) noexcept : State{Seed} { } @@ -62,7 +62,7 @@ template class FastRandReal : private FastRand { public: - FastRandReal(FastRand::StateType Seed) noexcept : + explicit FastRandReal(FastRand::StateType Seed) noexcept : FastRand{Seed} {} -- cgit v1.2.3