Fix compilation with boost 1.52. Closes #1670.

This commit is contained in:
Thomas Goyne 2013-12-11 19:36:29 -08:00
parent 0a19a6d8f5
commit 30b475410e

View file

@ -22,6 +22,18 @@
#include "video_frame.h"
#include <algorithm>
#include <boost/version.hpp>
#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 {