mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01: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…
Add table
Add a link
Reference in a new issue