From: Arnaud Giersch Date: Mon, 25 Apr 2022 13:36:20 +0000 (+0200) Subject: Replace is_xxx::value with is_xxx_v (sonar, c++17). X-Git-Tag: v3.32~293 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/92ae53cbe507fc03b146ab6b0aa503b735603340 Replace is_xxx::value with is_xxx_v (sonar, c++17). --- diff --git a/src/mc/remote/Channel.hpp b/src/mc/remote/Channel.hpp index 2166673b6b..0da0a08237 100644 --- a/src/mc/remote/Channel.hpp +++ b/src/mc/remote/Channel.hpp @@ -20,10 +20,7 @@ namespace mc { */ class Channel { int socket_ = -1; - template static constexpr bool messageType() - { - return std::is_class::value && std::is_trivial::value; - } + template static constexpr bool messageType() { return std::is_class_v && std::is_trivial_v; } public: explicit Channel(int sock) : socket_(sock) {}