]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.h
Remove dependence on depreacted std::auto_ptr<T>.
[ginac.git] / ginac / ex.h
index de0fbff6aa8a9da2c68a79f4dfa625569bcfde78..0bf63a0d782e629e5b8547414d06ebc46229a5ab 100644 (file)
@@ -373,9 +373,9 @@ public:
 
        // This should return an ex*, but that would be a pointer to a
        // temporary value
-       std::auto_ptr<ex> operator->() const
+       std::unique_ptr<ex> operator->() const
        {
-               return std::auto_ptr<ex>(new ex(operator*()));
+               return std::unique_ptr<ex>(new ex(operator*()));
        }
 
        ex operator[](difference_type n) const