Merge pull request #11203 from pinotree/libutil-ctor-remove-template-id

libutil: remove template id from constructors
This commit is contained in:
Eelco Dolstra 2024-07-29 13:56:55 +02:00 committed by GitHub
commit 673f2dcadb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,14 +23,14 @@ public:
: p(r.p) : p(r.p)
{ } { }
explicit ref<T>(const std::shared_ptr<T> & p) explicit ref(const std::shared_ptr<T> & p)
: p(p) : p(p)
{ {
if (!p) if (!p)
throw std::invalid_argument("null pointer cast to ref"); throw std::invalid_argument("null pointer cast to ref");
} }
explicit ref<T>(T * p) explicit ref(T * p)
: p(p) : p(p)
{ {
if (!p) if (!p)