From 8deb74c588599befe6b429c7f354dbddbcab4621 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 22 Sep 2018 17:03:29 +0100 Subject: Fix build with newer boost. --- src/subtitle_asset.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 19f7fa37..7502b675 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -52,7 +52,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; @@ -457,7 +456,7 @@ SubtitleAsset::pull_fonts (shared_ptr 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 { -- cgit v1.2.3