suppress g++'s warning that auto_ptr is deprecated
This commit is contained in:
parent
40ab3d2249
commit
cef5d842b3
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue