Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Uniformize get_impl(): const attribute, and return raw pointer.
[simgrid.git] / include / simgrid / s4u / Link.hpp
index 4a1189d..74fb9e9 100644 (file)
@@ -33,7 +33,7 @@ class XBT_PUBLIC Link : public xbt::Extendable<Link> {
 public:
   enum class SharingPolicy { SPLITDUPLEX = 2, SHARED = 1, FATPIPE = 0 };
 
-  kernel::resource::LinkImpl* get_impl() { return pimpl_; }
+  kernel::resource::LinkImpl* get_impl() const { return pimpl_; }
 
   /** @brief Retrieve a link from its name */
   static Link* by_name(const std::string& name);