diff --git a/auto_ptr.cpp b/auto_ptr.cpp index a60fcae..7d7a175 100644 --- a/auto_ptr.cpp +++ b/auto_ptr.cpp @@ -2,6 +2,9 @@ #include #include +// auto_ptr<> is deprecated, i know. +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + int main() { int *i = new int; std::auto_ptr x(i);