Skip to content

Commit

Permalink
Remove useless const
Browse files Browse the repository at this point in the history
  • Loading branch information
bprather committed Aug 11, 2023
1 parent f4147e5 commit f5ddad8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/interface/packages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ class Packages_t {
return packages_.at(name);
}

// Templated version for retrieving a package with a particular type
// Allows subclassing 'StateDescriptor' to add user package types to list
// Retrieve a package pointer, cast to a given type T
template <typename T>
T *const Get(const std::string &name) const {
T* Get(const std::string &name) const {
return static_cast<T *>(packages_.at(name).get());
}

Expand Down

0 comments on commit f5ddad8

Please sign in to comment.