nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user