tinfo_key wasn't set correctly in certain constructors
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 14 Jul 2003 20:19:44 +0000 (20:19 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 14 Jul 2003 20:19:44 +0000 (20:19 +0000)
ginac/container.h

index 9a40f2e..f382a8a 100644 (file)
@@ -85,7 +85,7 @@ protected:
 
        // constructors
 public:
-       container(STLT const & s, bool discardable = false)
+       container(STLT const & s, bool discardable = false) : inherited(get_tinfo())
        {
                if (discardable)
                        seq.swap(const_cast<STLT &>(s));
@@ -93,7 +93,7 @@ public:
                        seq = s;
        }
 
-       explicit container(STLT * vp)
+       explicit container(STLT * vp) : inherited(get_tinfo())
        {
                GINAC_ASSERT(vp);
                seq.swap(*vp);