]> www.ginac.de Git - ginac.git/blobdiff - ginac/container.h
tinfo_key wasn't set correctly in certain constructors
[ginac.git] / ginac / container.h
index 9a40f2edea9b7954667fa26820c18794b37ce9fd..f382a8ae66012652f3abe761474d108e1c38bb80 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);