summaryrefslogtreecommitdiff
path: root/tools/dcpdiff.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-15 13:38:14 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-15 13:38:14 +0100
commit6322c72a13d7be2e991a8e0421414c0af8187b88 (patch)
treeb4ca07d1f00016bcd407152202ab408b59f093d4 /tools/dcpdiff.cc
parent4709841e68d860c4fbee2f2f824e57489c8ad97d (diff)
Use boost::function for making notes during equals operations.
Diffstat (limited to 'tools/dcpdiff.cc')
-rw-r--r--tools/dcpdiff.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc
index 025308e6..6d55586d 100644
--- a/tools/dcpdiff.cc
+++ b/tools/dcpdiff.cc
@@ -20,6 +20,12 @@ help (string n)
<< "and differing UUIDs.\n";
}
+void
+note (string n)
+{
+ cout << " " << n << "\n";
+}
+
int
main (int argc, char* argv[])
{
@@ -87,12 +93,7 @@ main (int argc, char* argv[])
/* I think this is just below the LSB at 16-bits (ie the 8th most significant bit at 24-bit) */
options.max_audio_sample_error = 255;
- list<string> notes;
- bool equals = a->equals (*b, options, notes);
-
- for (list<string>::iterator i = notes.begin(); i != notes.end(); ++i) {
- cout << " " << *i << "\n";
- }
+ bool const equals = a->equals (*b, options, boost::bind (note, _1));
if (equals) {
exit (EXIT_SUCCESS);