mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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:
parent
2aa1197eee
commit
1f3c8f3664
1 changed files with 4 additions and 0 deletions
|
|
@ -94,7 +94,11 @@ public:
|
||||||
virtual void reset() { assert(0); } // only for graph iterators
|
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;
|
typedef std::auto_ptr<Iterator> IteratorRef;
|
||||||
|
#endif
|
||||||
|
|
||||||
class ManipIterator : public Iterator
|
class ManipIterator : public Iterator
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue