diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-17 21:30:34 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-17 21:30:34 +0000 |
| commit | c289685296d58228df0a88354e966105b242c915 (patch) | |
| tree | 7a6d0ae7f447038cf6a43c9dbf10eca08b59fd6b /src/util.cc | |
| parent | c2cf8eb8d22265988bbf81e0331a98a7aa6786ed (diff) | |
Add Size operators; install util.h
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index 4ddb466c..1cbec719 100644 --- a/src/util.cc +++ b/src/util.cc @@ -277,3 +277,14 @@ libdcp::empty_or_white_space (string s) return true; } + +bool libdcp::operator== (libdcp::Size const & a, libdcp::Size const & b) +{ + return (a.width == b.width && a.height == b.height); +} + +bool libdcp::operator!= (libdcp::Size const & a, libdcp::Size const & b) +{ + return !(a == b); +} + |
