dev-python/mpmath: Bump to 1.4.0_alpha4
[gentoo/gentoo.git] / media-video / mjpegtools / files / mjpegtools-2.2.1-c++17-no-auto_ptr-fix.patch
blobcc68c95c2493363d51a45f5c75d8549651873e36
1 --- a/mplex/main.cpp
2 +++ b/mplex/main.cpp
3 @@ -50,7 +50,7 @@
4 #include "multiplexor.hpp"
7 -using std::auto_ptr;
8 +using std::unique_ptr;
11 /*************************************************************************
12 @@ -138,7 +138,7 @@
13 void
14 FileOutputStream::NextSegment( )
16 - auto_ptr<char> prev_filename_buf( new char[strlen(cur_filename)+1] );
17 + unique_ptr<char[]> prev_filename_buf( new char[strlen(cur_filename)+1] );
18 char *prev_filename = prev_filename_buf.get();
19 fclose(strm);
20 ++segment_num;