diff options
author | Behnam Momeni | 2015-11-26 22:13:47 +0330 |
---|---|---|
committer | Behnam Momeni | 2015-11-26 22:13:47 +0330 |
commit | 9d6a27855047c5c62370734a0656522dd9cefd90 (patch) | |
tree | f5e75b0b1695c7ae3657209200b06635217c592e /stream_bool_cast.patch | |
parent | 3c66fcd9d345f584650db20372ee59198cd086e2 (diff) | |
download | aur-9d6a27855047c5c62370734a0656522dd9cefd90.tar.gz |
Adding two patches to make it compilable with g++ 5.2.0
Diffstat (limited to 'stream_bool_cast.patch')
-rw-r--r-- | stream_bool_cast.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/stream_bool_cast.patch b/stream_bool_cast.patch new file mode 100644 index 000000000000..51c9132ca87c --- /dev/null +++ b/stream_bool_cast.patch @@ -0,0 +1,13 @@ +--- bombono-dvd-1.2.2/src/mgui/stream_utils.h 2013-03-08 00:50:45.000000000 +0330 ++++ new/src/mgui/stream_utils.h 2015-11-26 20:37:42.780113771 +0330 +@@ -42,8 +42,8 @@ + stream(std::iostream& strm): io_strm(strm) {} + + std::iostream& strm() { return io_strm; } +- operator void*() const { return (void*)io_strm; } +- bool operator!() const { return !operator void*(); } ++ operator bool() const { return static_cast<bool> (io_strm); } ++ bool operator!() const { return !operator bool(); } + stream& seekg(streamoff off, ios_base::seekdir dir) + { io_strm.seekg(off, dir); return *this; } + stream& seekp(streamoff off, ios_base::seekdir dir) |