freebsd-ports/sysutils/searchmonkey/files/patch-Utility.h
Beech Rintoul 6a432a3c7f - Fix build with clang
- Support CXXFLAGS properly
- Add LICENSE

New file:
files/patch-Utility.h

Feature safe: yes

PR:		ports/174171
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2012-12-08 04:04:47 +00:00

35 lines
1.1 KiB
C++

--- Utility.h.orig 2010-05-16 20:37:32.000000000 +0900
+++ Utility.h 2012-10-17 06:41:46.000000000 +0900
@@ -92,16 +92,6 @@
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 @@
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