Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2018 19:42:08 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474294 - head/multimedia/aegisub/files
Message-ID:  <201807091942.w69Jg8tB014714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Jul  9 19:42:07 2018
New Revision: 474294
URL: https://svnweb.freebsd.org/changeset/ports/474294

Log:
  multimedia/aegisub: unbreak with boost 1.68
  
  src/search_replace_engine.cpp:315:14: error: call to
        'distance' is ambiguous
                                  count += distance(
                                           ^~~~~~~~
  /usr/include/c++/v1/iterator:511:1: note: candidate function [with _InputIter =
        boost::u32regex_iterator<std::__1::__wrap_iter<const char *> >]
  distance(_InputIter __first, _InputIter __last)
  ^
  /usr/local/include/boost/iterator/distance.hpp:49:9: note: candidate function [with SinglePassIterator =
        boost::u32regex_iterator<std::__1::__wrap_iter<const char *> >]
          distance(SinglePassIterator first, SinglePassIterator last)
          ^
  
  PR:		229569

Added:
  head/multimedia/aegisub/files/patch-src_search__replace__engine.cpp   (contents, props changed)

Added: head/multimedia/aegisub/files/patch-src_search__replace__engine.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/aegisub/files/patch-src_search__replace__engine.cpp	Mon Jul  9 19:42:07 2018	(r474294)
@@ -0,0 +1,26 @@
+After https://github.com/boostorg/range/commit/69409ed63a9e1 build fails:
+
+src/search_replace_engine.cpp:315:14: error: call to
+      'distance' is ambiguous
+                                count += distance(
+                                         ^~~~~~~~
+/usr/include/c++/v1/iterator:511:1: note: candidate function [with _InputIter =
+      boost::u32regex_iterator<std::__1::__wrap_iter<const char *> >]
+distance(_InputIter __first, _InputIter __last)
+^
+/usr/local/include/boost/iterator/distance.hpp:49:9: note: candidate function [with SinglePassIterator =
+      boost::u32regex_iterator<std::__1::__wrap_iter<const char *> >]
+        distance(SinglePassIterator first, SinglePassIterator last)
+        ^
+
+--- src/search_replace_engine.cpp.orig	2014-12-08 00:07:09 UTC
++++ src/search_replace_engine.cpp
+@@ -312,7 +312,7 @@
+ 			if (MatchState ms = matches(&diag, 0)) {
+ 				auto& diag_field = diag.*get_dialogue_field(settings.field);
+ 				std::string const& text = diag_field.get();
+-				count += distance(
++				count += std::distance(
+ 					boost::u32regex_iterator<std::string::const_iterator>(begin(text), end(text), *ms.re),
+ 					boost::u32regex_iterator<std::string::const_iterator>());
+ 				diag_field = u32regex_replace(text, *ms.re, settings.replace_with);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807091942.w69Jg8tB014714>