Skip to content

Commit

Permalink
Merge pull request #11203 from pinotree/libutil-ctor-remove-template-id
Browse files Browse the repository at this point in the history
libutil: remove template id from constructors
  • Loading branch information
edolstra authored Jul 29, 2024
2 parents 0e151bc + 96e06b2 commit 673f2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libutil/ref.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public:
: p(r.p)
{ }

explicit ref<T>(const std::shared_ptr<T> & p)
explicit ref(const std::shared_ptr<T> & p)
: p(p)
{
if (!p)
throw std::invalid_argument("null pointer cast to ref");
}

explicit ref<T>(T * p)
explicit ref(T * p)
: p(p)
{
if (!p)
Expand Down

0 comments on commit 673f2dc

Please sign in to comment.