-/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
*/
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) {}