]> www.ginac.de Git - ginac.git/blobdiff - ginac/hash_map.h
Univariate Hensel lifting now uses upoly.
[ginac.git] / ginac / hash_map.h
index df5a674b5f51dc62c9e702fdd744dbef8951a575..e7aa924c446a5ab7c5907528e3ca95ae2dbf913d 100644 (file)
@@ -3,7 +3,7 @@
  *  Replacement for map<> using hash tables. */
 
 /*
- *  GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 #ifndef __GINAC_HASH_MAP_H__
@@ -337,7 +337,7 @@ public:
 
        iterator insert(iterator pos, const value_type &x)
        {
-               return insert(val).first;
+               return insert(x).first;
        }
 
        template <class InputIterator>
@@ -431,6 +431,7 @@ public:
                return !(lhs == rhs);
        }
 
+#if 0
        void dump() const
        {
                std::clog << "num_entries = " << num_entries << std::endl;
@@ -441,6 +442,7 @@ public:
                        std::clog << (it->first == EMPTY ? "free" : (it->first == USED ? "used" : "erased")) << ", " << it->second.first << " -> " << it->second.second << std::endl;
                }
        }
+#endif
 };
 
 /** Return pointer to bucket corresponding to key (or first empty bucket). */