mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Merge pull request #11203 from pinotree/libutil-ctor-remove-template-id
libutil: remove template id from constructors
This commit is contained in:
commit
673f2dcadb
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue