suppress g++'s warning that auto_ptr is deprecated

This commit is contained in:
neingeist 2014-04-19 11:20:46 +02:00
parent 40ab3d2249
commit cef5d842b3

View file

@ -2,6 +2,9 @@
#include <iostream>
#include <memory>
// auto_ptr<> is deprecated, i know.
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
int main() {
int *i = new int;
std::auto_ptr<int> x(i);