Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make constructor 'explicit'.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 5 Feb 2021 15:52:17 +0000 (16:52 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 5 Feb 2021 15:52:17 +0000 (16:52 +0100)
src/kernel/activity/CommImpl.hpp

index e9485d6..39668cb 100644 (file)
@@ -28,7 +28,7 @@ class XBT_PUBLIC CommImpl : public ActivityImpl_T<CommImpl> {
 public:
   enum class Type { SEND, RECEIVE };
 
-  CommImpl(Type type) : type_(type) {}
+  explicit CommImpl(Type type) : type_(type) {}
   CommImpl(s4u::Host* from, s4u::Host* to, double bytes);
 
   CommImpl& set_size(double size);