X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8017d49035c1ccdcd6b49f09162a4836b8d45a8..96b18f4b65694f66c8aea2d702b6f087fdcf9cb7:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index 698e64fc14..4e59267257 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -42,12 +42,9 @@ namespace s4u { XBT_PUBLIC_CLASS Host : public simgrid::xbt::Extendable { -private: +public: explicit Host(const char *name); -public: // TODO, make me private - ~Host(); - /** Do not use this function, it should be private */ - static Host* by_name_or_create(const char* name); + ~Host(); // TODO, make me private /** Retrieves an host from its name, or return nullptr */ static Host* by_name_or_null(const char* name);