mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
Aegisub: rebuild against boost-1.68.0
This commit is contained in:
parent
3337302f07
commit
9a5f769c34
1 changed files with 34 additions and 0 deletions
34
srcpkgs/Aegisub/patches/boost-1.68.patch
Normal file
34
srcpkgs/Aegisub/patches/boost-1.68.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
From d8336d2fed73c72d1227b343d6acfb991bc1651b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Beich <jbeich@FreeBSD.org>
|
||||||
|
Date: Mon, 9 Jul 2018 20:15:29 +0000
|
||||||
|
Subject: [PATCH] Keep using std::distance after Boost 1.68
|
||||||
|
|
||||||
|
src/search_replace_engine.cpp:256: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 | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git src/search_replace_engine.cpp src/search_replace_engine.cpp
|
||||||
|
index 594c21e5e..14c71680d 100644
|
||||||
|
--- src/search_replace_engine.cpp
|
||||||
|
+++ src/search_replace_engine.cpp
|
||||||
|
@@ -253,7 +253,7 @@ bool SearchReplaceEngine::ReplaceAll() {
|
||||||
|
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);
|
Loading…
Add table
Reference in a new issue