diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2004-08-13 17:39:32 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2004-08-13 17:39:32 +0000 |
| commit | 41035190f0bb3777daee8482f3a45f99bb9c371e (patch) | |
| tree | 7ec5f82f4ae41b29870c001bb843f048a257fa88 /math/libmath++/files/patch-math-matcher.tcc | |
| parent | Fix build with GCC 3.4.2. Note: patches were submitted by someone else, (diff) | |
Add patches to quiet new warnings and errors from gcc 3.4.2. The patches
have been fed upstream to the maintainer and will hopefully be included
in future releases.
Prodded by: pointyhat via kris
Diffstat (limited to 'math/libmath++/files/patch-math-matcher.tcc')
| -rw-r--r-- | math/libmath++/files/patch-math-matcher.tcc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/math/libmath++/files/patch-math-matcher.tcc b/math/libmath++/files/patch-math-matcher.tcc new file mode 100644 index 000000000000..eca72518a8a3 --- /dev/null +++ b/math/libmath++/files/patch-math-matcher.tcc @@ -0,0 +1,44 @@ +--- math++/matcher.tcc.orig Fri Aug 13 13:11:35 2004 ++++ math++/matcher.tcc Fri Aug 13 13:15:44 2004 +@@ -35,12 +35,12 @@ + + template<class T> + TMatchRegistry<T>::TMatchRegistry() { +-}; ++} + + template<class T> + TMatchRegistry<T>::TMatchRegistry(const TMatchRegistry<T>& AProto) : + FAnyMap(AProto.FAnyMap), FNodeList(AProto.FNodeList) { +-}; ++} + + template<class T> + void TMatchRegistry<T>::define(const std::string& AId, const TNode<T> *ANode) { +@@ -158,7 +158,7 @@ + va_start(ap, ARight); + + while (TMatch<T> *p = va_arg(ap, TMatch<T> *)) +- FPatterns.push_back(p); ++ this->FPatterns.push_back(p); + + va_end(ap); + } +@@ -166,7 +166,7 @@ + template<class T> + bool TPlusMatch<T>::match(const TNode<T> *AExpr, TMatchRegistry<T> *AReg) const { + // yet a primitive sequencial search +- for (typename T2Match<T>::TList::const_iterator p = FPatterns.begin(); p != FPatterns.end(); ++p) ++ for (typename T2Match<T>::TList::const_iterator p = this->FPatterns.begin(); p != this->FPatterns.end(); ++p) + if (!TMatcher<T>::match(*p, AExpr, AReg)) + return false; + +@@ -182,7 +182,7 @@ + va_start(ap, ARight); + + while (TMatch<T> *p = va_arg(ap, TMatch<T> *)) +- FPatterns.push_back(p); ++ this->FPatterns.push_back(p); + + va_end(ap); + } |
