]> www.ginac.de Git - ginac.git/blobdiff - ginac/add.h
moved some common code to the 'tensor' class
[ginac.git] / ginac / add.h
index c0dfca55f8d0c96fb58af906fcda79ea88c8d76a..9288891921a9643cba026295eebc1f3706e37442 100644 (file)
@@ -3,7 +3,7 @@
  *  Interface to GiNaC's sums of expressions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -33,7 +33,6 @@ class add : public expairseq
        GINAC_DECLARE_REGISTERED_CLASS(add, expairseq)
        
        friend class mul;
-       friend class ncmul;
        friend class power;
        
        // other constructors
@@ -44,7 +43,7 @@ public:
        add(const epvector & v, const ex & oc);
        add(epvector * vp, const ex & oc);
        
-       // functions overriding virtual functions from bases classes
+       // functions overriding virtual functions from base classes
 public:
        void print(const print_context & c, unsigned level = 0) const;
        unsigned precedence(void) const {return 40;}
@@ -79,13 +78,6 @@ protected:
 
 // utility functions
 
-/** Return the add object handled by an ex.  Deprecated: use ex_to<add>().
- *  This is unsafe: you need to check the type first. */
-inline const add &ex_to_add(const ex &e)
-{
-       return static_cast<const add &>(*e.bp);
-}
-
 /** Specialization of is_exactly_a<add>(obj) for add objects. */
 template<> inline bool is_exactly_a<add>(const basic & obj)
 {