summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-22 17:03:29 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-22 17:03:29 +0100
commit62c7d0c33b06ffadc09fb6c25d8dba673c384c47 (patch)
tree500729d79b3b3d2498446db00ff67c96cf862296 /src
parentee05b1c06aa5305b5c97dc74dc8f253bab99a2ac (diff)
Fix build with newer boost.
Diffstat (limited to 'src')
-rw-r--r--src/subtitle_asset.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc
index 880c3120..bb7b0b1c 100644
--- a/src/subtitle_asset.cc
+++ b/src/subtitle_asset.cc
@@ -53,7 +53,6 @@ using std::list;
using std::cout;
using std::cerr;
using std::map;
-using std::distance;
using boost::shared_ptr;
using boost::shared_array;
using boost::optional;
@@ -539,7 +538,7 @@ SubtitleAsset::pull_fonts (shared_ptr<order::Part> part)
while (j != part->children.end() && (*i)->font == (*j)->font) {
++j;
}
- if (distance (i, j) == 1) {
+ if (std::distance (i, j) == 1) {
merged.push_back (*i);
++i;
} else {