From 4ada3e7583dfdc658dbebca3c3603be1e3477c12 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Oct 2014 13:29:36 +0100 Subject: Template-ize collect so that any container can be used. Add new vertical reference of TOP_OF_SUBTITLE, and use references with line numbers as well as proportional specifiers. Add a couple of methods to MetricTime. --- tools/dumpsubs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/dumpsubs.cc b/tools/dumpsubs.cc index ac582e6..7203078 100644 --- a/tools/dumpsubs.cc +++ b/tools/dumpsubs.cc @@ -82,7 +82,7 @@ main (int argc, char* argv[]) cout << i->first << ": " << i->second << "\n"; } - list subs = collect (reader->subtitles ()); + list subs = collect > (reader->subtitles ()); for (list::const_iterator i = subs.begin(); i != subs.end(); ++i) { cout << "Subtitle at " << i->from << " -> " << i->to << "\n"; for (list::const_iterator j = i->lines.begin(); j != i->lines.end(); ++j) { -- cgit v1.2.3