diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-06-25 17:18:36 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-06-25 17:18:36 +0000 |
commit | a4509058c01c85aacdfd56fc26f1c66150e5c1b2 (patch) | |
tree | bd34ef2c04305df6545700a9c3780d20fe92df83 /app-text/searchmonkey/files | |
parent | dev-libs/libtar: Fix implicit declarations; Fix install failure if app-portag... (diff) | |
download | historical-a4509058c01c85aacdfd56fc26f1c66150e5c1b2.tar.gz historical-a4509058c01c85aacdfd56fc26f1c66150e5c1b2.tar.bz2 historical-a4509058c01c85aacdfd56fc26f1c66150e5c1b2.zip |
app-text/searchmonkey: Fix for gcc-4.7, #423191
Package-Manager: portage-2.2.0_alpha112/cvs/Linux x86_64
Diffstat (limited to 'app-text/searchmonkey/files')
-rw-r--r-- | app-text/searchmonkey/files/searchmonkey-2.0.0-gcc4.7.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app-text/searchmonkey/files/searchmonkey-2.0.0-gcc4.7.patch b/app-text/searchmonkey/files/searchmonkey-2.0.0-gcc4.7.patch new file mode 100644 index 000000000000..f9d1718dd7b4 --- /dev/null +++ b/app-text/searchmonkey/files/searchmonkey-2.0.0-gcc4.7.patch @@ -0,0 +1,40 @@ + Utility.h | 20 ++++++++++---------- + 1 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/Utility.h b/Utility.h +index 890eada..99f9a4e 100644 +--- a/Utility.h ++++ b/Utility.h +@@ -92,16 +92,6 @@ QRegExp::PatternSyntax uint2syntax(uint _index); + CallEach(observers, searchable, &Subject::Register);
+ here the Subject is the type of Caller
+ */
+-template <typename CalleeContainer, typename Caller, typename Op>
+-void CallEach(const CalleeContainer& container, Caller& caller, Op op)
+-{
+- for_each(container.begin(), container.end(), bind1st(mem_fun(op), caller));
+-}
+-template <typename T>
+-bool IsValueInRange(T value, T lowerBound, T upperBound)
+-{
+- return LowerBoundFit(value, lowerBound) && UpperBoundFit(value, upperBound);
+-}
+ template <typename T>
+ bool BoundSpecified(T boundValue)
+ {
+@@ -129,5 +119,15 @@ bool UpperBoundFit(T value, T upperBound) +
+ return false;
+ }
++template <typename CalleeContainer, typename Caller, typename Op>
++void CallEach(const CalleeContainer& container, Caller& caller, Op op)
++{
++ for_each(container.begin(), container.end(), bind1st(mem_fun(op), caller));
++}
++template <typename T>
++bool IsValueInRange(T value, T lowerBound, T upperBound)
++{
++ return LowerBoundFit(value, lowerBound) && UpperBoundFit(value, upperBound);
++}
+
+ #endif
|