summaryrefslogtreecommitdiff
path: root/src/data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.cc')
-rw-r--r--src/data.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data.cc b/src/data.cc
index 1971a261..9fcf9601 100644
--- a/src/data.cc
+++ b/src/data.cc
@@ -107,3 +107,9 @@ Data::write_via_temp (boost::filesystem::path temp, boost::filesystem::path fina
write (temp);
boost::filesystem::rename (temp, final);
}
+
+bool
+dcp::operator== (Data const & a, Data const & b)
+{
+ return (a.size() == b.size() && memcmp (a.data().get(), b.data().get(), a.size() == 0));
+}