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

View File

@@ -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)