From c49e088f6e828f5fc0b91702fcce5adf86e19144 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 13 Apr 2018 22:55:30 +0200 Subject: [PATCH] Please sonar: promote struct to class. --- src/smpi/internals/smpi_replay.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 9c44cde089..4744eda445 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -25,8 +25,9 @@ // this could go into a header file. namespace hash_tuple{ template - struct hash + class hash { + public: size_t operator()(TT const& tt) const { @@ -42,8 +43,9 @@ namespace hash_tuple{ // Recursive template code derived from Matthieu M. template ::value - 1> - struct HashValueImpl + class HashValueImpl { + public: static void apply(size_t& seed, Tuple const& tuple) { HashValueImpl::apply(seed, tuple); @@ -52,8 +54,9 @@ namespace hash_tuple{ }; template - struct HashValueImpl + class HashValueImpl { + public: static void apply(size_t& seed, Tuple const& tuple) { hash_combine(seed, std::get<0>(tuple)); @@ -61,8 +64,9 @@ namespace hash_tuple{ }; template - struct hash> + class hash> { + public: size_t operator()(std::tuple const& tt) const { -- 2.20.1