From 30b475410e1d0ed5661c31051fabc57cd8cb7370 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 11 Dec 2013 19:36:29 -0800 Subject: [PATCH] Fix compilation with boost 1.52. Closes #1670. --- aegisub/src/video_provider_cache.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/aegisub/src/video_provider_cache.cpp b/aegisub/src/video_provider_cache.cpp index add2f441f..14b8ac5e0 100644 --- a/aegisub/src/video_provider_cache.cpp +++ b/aegisub/src/video_provider_cache.cpp @@ -22,6 +22,18 @@ #include "video_frame.h" #include +#include + +#if BOOST_VERSION <= 105200 +// Compilation fails without this with boost 1.52. I have no idea why. +static bool operator==(VideoFrame const& a, VideoFrame const& b) { + return a.width == b.width + && a.height == b.height + && a.pitch == b.pitch + && a.flipped == b.flipped + && a.data == b.data; +} +#endif /// A video frame and its frame number struct CachedFrame : public VideoFrame {