]> www.ginac.de Git - ginac.git/blobdiff - ginac/expairseq.cpp
Add conjugate() methods to functions cosh, sinh, tanh.
[ginac.git] / ginac / expairseq.cpp
index 72848364ae17de1b69f14393bd3ddd45584b5b63..24991a7754c0d07f6b11e4032385076a8288ec6e 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of sequences of expression pairs. */
 
 /*
- *  GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2011 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
@@ -30,6 +30,7 @@
 #include "archive.h"
 #include "operators.h"
 #include "utils.h"
+#include "hash_seed.h"
 #include "indexed.h"
 
 #include <algorithm>
@@ -611,8 +612,7 @@ unsigned expairseq::return_type() const
 
 unsigned expairseq::calchash() const
 {
-       const void* this_tinfo = (const void*)typeid(*this).name();
-       unsigned v = golden_ratio_hash((p_int)this_tinfo);
+       unsigned v = make_hash_seed(typeid(*this));
        epvector::const_iterator i = seq.begin();
        const epvector::const_iterator end = seq.end();
        while (i != end) {