From b3283b8904fbc9617cb6293791c7a653e255ebbe Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 13 Aug 2003 18:35:31 +0000 Subject: [PATCH] lst(0) now works as expected --- ginac/container.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ginac/container.h b/ginac/container.h index 88ccd6a0..a6dea4a6 100644 --- a/ginac/container.h +++ b/ginac/container.h @@ -95,9 +95,13 @@ public: explicit container(STLT * vp) : inherited(get_tinfo()) { - GINAC_ASSERT(vp); - this->seq.swap(*vp); - delete vp; + if (vp == 0) { + // lst(0) ends up here + this->seq.push_back(0); + } else { + this->seq.swap(*vp); + delete vp; + } } container(exvector::const_iterator b, exvector::const_iterator e) -- 2.44.0