]> www.ginac.de Git - ginac.git/blobdiff - ginac/function.hppy
Replace use of NULL by C++11 nullptr.
[ginac.git] / ginac / function.hppy
index 971786d23a57efde2701899fb0de2523e21feabf..a5605115164e97cd8e8982c1abb0790abb1dfea6 100644 (file)
@@ -145,8 +145,8 @@ public:
        unsigned get_nparams() const { return nparams; }
 
 protected:
-       bool has_derivative() const { return derivative_f != NULL; }
-       bool has_power() const { return power_f != NULL; }
+       bool has_derivative() const { return derivative_f != nullptr; }
+       bool has_power() const { return power_f != nullptr; }
        void test_and_set_nparams(unsigned n);
        void set_print_func(unsigned id, print_funcp f);
 
@@ -223,7 +223,7 @@ public:
        // end of generated lines
        function(unsigned ser, const exprseq & es);
        function(unsigned ser, const exvector & v, bool discardable = false);
-       function(unsigned ser, std::auto_ptr<exvector> vp);
+       function(unsigned ser, exvector && v);
        
        // functions overriding virtual functions from base classes
 public:
@@ -236,7 +236,7 @@ public:
        unsigned calchash() const;
        ex series(const relational & r, int order, unsigned options = 0) const;
        ex thiscontainer(const exvector & v) const;
-       ex thiscontainer(std::auto_ptr<exvector> vp) const;
+       ex thiscontainer(exvector && v) const;
        ex conjugate() const;
        ex real_part() const;
        ex imag_part() const;