diff --git a/src/interface/packages.hpp b/src/interface/packages.hpp index 65f1d18e5561..1ef6db59f58f 100644 --- a/src/interface/packages.hpp +++ b/src/interface/packages.hpp @@ -33,7 +33,7 @@ class Packages_t { // Retrieve a package pointer, cast to a given type T template - T* Get(const std::string &name) const { + T *Get(const std::string &name) const { return static_cast(packages_.at(name).get()); }