Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace is_xxx::value with is_xxx_v (sonar, c++17).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 25 Apr 2022 13:36:20 +0000 (15:36 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 25 Apr 2022 13:36:20 +0000 (15:36 +0200)
src/mc/remote/Channel.hpp

index 2166673..0da0a08 100644 (file)
@@ -20,10 +20,7 @@ namespace mc {
  */
 class Channel {
   int socket_ = -1;
-  template <class M> static constexpr bool messageType()
-  {
-    return std::is_class<M>::value && std::is_trivial<M>::value;
-  }
+  template <class M> static constexpr bool messageType() { return std::is_class_v<M> && std::is_trivial_v<M>; }
 
 public:
   explicit Channel(int sock) : socket_(sock) {}