suppress g++'s warning that auto_ptr is deprecated

master
neingeist 11 years ago
parent 40ab3d2249
commit cef5d842b3

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

Loading…
Cancel
Save