Merge pull request #11203 from pinotree/libutil-ctor-remove-template-id
libutil: remove template id from constructors
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user