File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/openvic-simulation/utility Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,18 +66,18 @@ namespace OpenVic {
6666 return lhs._generator != rhs._generator ;
6767 }
6868
69- OV_ALWAYS_INLINE constexpr T& generator () {
69+ [[nodiscard]] OV_ALWAYS_INLINE constexpr T& generator () {
7070 return _generator;
7171 }
7272
73- OV_ALWAYS_INLINE constexpr T const & generator () const {
73+ [[nodiscard]] OV_ALWAYS_INLINE constexpr T const & generator () const {
7474 return _generator;
7575 }
7676
7777 private:
7878 T _generator;
7979 };
8080
81- using RandomU32 = RandomGenerator<XoshiroCpp::Xoshiro128StarStar>;
82- using RandomU64 = RandomGenerator<XoshiroCpp::Xoshiro256StarStar>;
81+ struct RandomU32 : RandomGenerator<XoshiroCpp::Xoshiro128StarStar> { using RandomGenerator::RandomGenerator; } ;
82+ struct RandomU64 : RandomGenerator<XoshiroCpp::Xoshiro256StarStar> { using RandomGenerator::RandomGenerator; } ;
8383}
You can’t perform that action at this time.
0 commit comments