diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-22 17:03:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-25 22:52:32 +0100 |
| commit | 8deb74c588599befe6b429c7f354dbddbcab4621 (patch) | |
| tree | 2b51fbc27fbabc545d5cef65de098e4180cdc100 | |
| parent | b611e2a8758e553356432955162a08478e8af5ca (diff) | |
Fix build with newer boost.
| -rw-r--r-- | src/subtitle_asset.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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<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 { |
