X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Frelational.cpp;h=d345943c26cc2bbea2157efbe0ff9894d220d0ad;hp=f3329f98824edc92dd6c3fd6739abb0b83353d0d;hb=556ea59d4be5f0e2e8d3760501b8b9cb8587c1ec;hpb=12fefbca9b424cb8e9ae05d83883b96e17c7b96e diff --git a/ginac/relational.cpp b/ginac/relational.cpp index f3329f98..d345943c 100644 --- a/ginac/relational.cpp +++ b/ginac/relational.cpp @@ -40,7 +40,7 @@ GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(relational, basic, // default constructor ////////// -relational::relational() : basic(&relational::tinfo_static) {} +relational::relational() { } ////////// // other constructors @@ -48,14 +48,16 @@ relational::relational() : basic(&relational::tinfo_static) {} // public -relational::relational(const ex & lhs, const ex & rhs, operators oper) : basic(&relational::tinfo_static), lh(lhs), rh(rhs), o(oper) {} +relational::relational(const ex & lhs, const ex & rhs, operators oper) : + lh(lhs), rh(rhs), o(oper) { } ////////// // archiving ////////// -relational::relational(const archive_node &n, lst &sym_lst) : inherited(n, sym_lst) +void relational::read_archive(const archive_node& n, lst& sym_lst) { + inherited::read_archive(n, sym_lst); unsigned int opi; if (!(n.find_unsigned("op", opi))) throw (std::runtime_error("unknown relational operator in archive")); @@ -63,6 +65,7 @@ relational::relational(const archive_node &n, lst &sym_lst) : inherited(n, sym_l n.find_ex("lh", lh, sym_lst); n.find_ex("rh", rh, sym_lst); } +GINAC_BIND_UNARCHIVER(relational); void relational::archive(archive_node &n) const { @@ -72,8 +75,6 @@ void relational::archive(archive_node &n) const n.add_unsigned("op", o); } -DEFAULT_UNARCHIVE(relational) - ////////// // functions overriding virtual functions from base classes //////////