SharePtr fix for gcc 7.2 (#2004)

This commit is contained in:
Marian Krivoš 2017-11-15 17:49:58 +01:00 committed by Aleksandar Fabijanic
parent e1018881ba
commit 5c1e3b5ab8

View File

@ -100,7 +100,7 @@ public:
template <class Other>
SharedPtr& assign(const SharedPtr<Other>& ptr)
{
if (ptr.get() != _ptr)
if (ptr.get() != _ptr.get())
{
SharedPtr tmp(ptr);
swap(tmp);