X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=doc%2Fexamples%2Fmystring.cpp;h=640f81eba84478e5a3d8a5b91d81edcf75a6b670;hb=d4ea19a525805e98ddbc8c88a4bb229763373c04;hp=bcbf96a889c84e748bce606bae5b18f48ad1a3d5;hpb=9413cd14faaf2980de3884915e22a5beda068ecc;p=ginac.git diff --git a/doc/examples/mystring.cpp b/doc/examples/mystring.cpp index bcbf96a8..640f81eb 100644 --- a/doc/examples/mystring.cpp +++ b/doc/examples/mystring.cpp @@ -4,9 +4,10 @@ #include #include #include -using namespace std; #include + +using namespace std; using namespace GiNaC; class mystring : public basic @@ -14,7 +15,7 @@ class mystring : public basic GINAC_DECLARE_REGISTERED_CLASS(mystring, basic) public: mystring(const string &s); - ex eval(int level) const override; + ex eval() const override; private: string str; @@ -54,7 +55,7 @@ void mystring::do_print(const print_context &c, unsigned level) const * evaluation: all strings automatically converted to lowercase with * non-alphabetic characters stripped, and empty strings removed */ -ex mystring::eval(int level) const +ex mystring::eval() const { string new_str; for (size_t i=0; i