Fix compilation with boost 1.52. Closes #1670.
This commit is contained in:
parent
0a19a6d8f5
commit
30b475410e
1 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,18 @@
|
||||||
#include "video_frame.h"
|
#include "video_frame.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#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
|
/// A video frame and its frame number
|
||||||
struct CachedFrame : public VideoFrame {
|
struct CachedFrame : public VideoFrame {
|
||||||
|
|
Loading…
Reference in a new issue