X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Findexed.cpp;h=50e3b01b60b83cbd6b77f5d8cfc0175e19c302dc;hp=3fad73f8eb22ae2e533f8b889ac247dafbba5a2e;hb=fe93a23731fc0296fdada1bb9024cc077d5073c5;hpb=f5e84af31b20c7f732bee375bacc152e7fb01e56 diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index 3fad73f8..50e3b01b 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -129,7 +129,7 @@ indexed::indexed(const symmetry & symm, const exvector & v, bool discardable) : tinfo_key = TINFO_indexed; } -indexed::indexed(const symmetry & symm, exvector * vp) : inherited(vp), symtree(symm) +indexed::indexed(const symmetry & symm, std::auto_ptr vp) : inherited(vp), symtree(symm) { tinfo_key = TINFO_indexed; } @@ -237,7 +237,7 @@ void indexed::do_print_latex(const print_latex & c, unsigned level) const void indexed::do_print_tree(const print_tree & c, unsigned level) const { - c.s << std::string(level, ' ') << class_name() + c.s << std::string(level, ' ') << class_name() << " @" << this << std::hex << ", hash=0x" << hashvalue << ", flags=0x" << flags << std::dec << ", " << seq.size()-1 << " indices" << ", symmetry=" << symtree << std::endl; @@ -316,7 +316,7 @@ ex indexed::thiscontainer(const exvector & v) const return indexed(ex_to(symtree), v); } -ex indexed::thiscontainer(exvector * vp) const +ex indexed::thiscontainer(std::auto_ptr vp) const { return indexed(ex_to(symtree), vp); }