Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further reduce the amount of includes
[simgrid.git] / include / simgrid / s4u / Mailbox.hpp
index 37dceac..07925b5 100644 (file)
@@ -110,7 +110,7 @@ XBT_PUBLIC_CLASS Mailbox {
 
   simgrid::simix::Mailbox *pimpl_;
 
-  Mailbox(smx_mailbox_t mbox): pimpl_(mbox) {}
+  explicit Mailbox(smx_mailbox_t mbox): pimpl_(mbox) {}
 
   /** private function to manage the mailboxes' lifetime (see @ref s4u_raii) */
   friend void intrusive_ptr_add_ref(Mailbox*) {}
@@ -121,7 +121,7 @@ public:
   smx_mailbox_t getImpl() { return pimpl_; }
 
   /** Gets the name of that mailbox */
-  const char *getName();
+  const char *name();
 
   /** Retrieve the mailbox associated to the given C string */
   static MailboxPtr byName(const char *name);