nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Jun 2016 11:09:11 +0000 (13:09 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 2 Jul 2016 10:21:28 +0000 (12:21 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_util.h

index 7b0de856c20917a7af7c122f0f11598ce074f84b..c6194990461c7dac3aedf526e2e0b18d416231c5 100644 (file)
@@ -94,7 +94,11 @@ public:
    virtual void reset() { assert(0); } // only for graph iterators
 };
 
+#if __cplusplus >= 201103L
+typedef std::unique_ptr<Iterator> IteratorRef;
+#else
 typedef std::auto_ptr<Iterator> IteratorRef;
+#endif
 
 class ManipIterator : public Iterator
 {