diff --git a/src/inet/InetLayer.h b/src/inet/InetLayer.h index a188dc86d41904..8a075e3bcbd3dd 100644 --- a/src/inet/InetLayer.h +++ b/src/inet/InetLayer.h @@ -117,7 +117,7 @@ class EndPointManagerImplPool : public EndPointManager; using EndPoint = typename EndPointImpl::EndPoint; - EndPointManagerImplPool() = default; + EndPointManagerImplPool() = default; ~EndPointManagerImplPool() override = default; EndPoint * CreateEndPoint() override { return sEndPointPool.CreateObject(*this); } diff --git a/src/lib/support/PoolWrapper.h b/src/lib/support/PoolWrapper.h index 93003e298f98a8..78b6d838245633 100644 --- a/src/lib/support/PoolWrapper.h +++ b/src/lib/support/PoolWrapper.h @@ -88,13 +88,12 @@ class PoolProxy> : public PoolIn } protected: - Loop ForEachActiveObjectInner(void * context, - typename PoolInterface::Lambda lambda) override + Loop ForEachActiveObjectInner(void * context, typename PoolInterface::Lambda lambda) override { return Impl().ForEachActiveObject([&](T * target) { return lambda(context, static_cast(target)); }); } Loop ForEachActiveObjectInner(void * context, - typename PoolInterface::LambdaConst lambda) const override + typename PoolInterface::LambdaConst lambda) const override { return Impl().ForEachActiveObject([&](const T * target) { return lambda(context, static_cast(target)); }); }