]> www.ginac.de Git - ginac.git/commitdiff
removed bogus assertion (typeid(*this) in a basic constructor is always
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Tue, 3 Aug 2004 19:18:28 +0000 (19:18 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Tue, 3 Aug 2004 19:18:28 +0000 (19:18 +0000)
typeid(basic), see C++ standard section 12.7(4))

ginac/basic.cpp

index 182191dcc5c8793b8289bdd40473ad2163add2c8..e3ead41568e1d0693b985c5e2bb810b0cf36763b 100644 (file)
@@ -57,7 +57,6 @@ GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(basic, void,
  *  tinfo_key and the hash value. */
 basic::basic(const basic & other) : tinfo_key(other.tinfo_key), flags(other.flags & ~status_flags::dynallocated), hashvalue(other.hashvalue)
 {
-       GINAC_ASSERT(typeid(*this) == typeid(other));
 }
 
 /** basic assignment operator: the other object might be of a derived class. */