From 2202ea1d67a2869ce0dc65e40b514cb71c1a7cb2 Mon Sep 17 00:00:00 2001 From: David Leal Date: Fri, 26 May 2023 17:16:42 +0000 Subject: [PATCH] fix: `clang-tidy` warnings (hopefully) --- games/memory_game.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/games/memory_game.cpp b/games/memory_game.cpp index 39ed6cac2..1a5a38746 100644 --- a/games/memory_game.cpp +++ b/games/memory_game.cpp @@ -28,10 +28,14 @@ // `std::random_shuffle` was deprecated in C++14. To keep support with most compilers, we need to check the C++ version. #if __cplusplus >= 201402L template - constexpr auto SHUFFLE(T a, T b) { std::shuffle(a, b, std::mt19937(std::random_device()())); } + constexpr auto SHUFFLE(T a, T b) -> void { + return std::shuffle(a, b, std::mt19937(std::random_device()())); + } #else template - constexpr auto SHUFFLE(T a, T b) { std::random_shuffle(a, b); } + constexpr auto SHUFFLE(T a, T b) -> void { + return std::random_shuffle(a, b); + } #endif /**