]> www.ginac.de Git - ginac.git/blobdiff - doc/tutorial/ginac.texi
[C++20] Clean up using-declarations.
[ginac.git] / doc / tutorial / ginac.texi
index 765c966e69462edb3934f7230b2e1f3a4a13b154..1ba42151e86a39898c9c2dbef89cc4268c1d5a3f 100644 (file)
@@ -6696,8 +6696,8 @@ expression a unique name:
 
 @example
 #include <fstream>
-using namespace std;
 #include <ginac/ginac.h>
+using namespace std;
 using namespace GiNaC;
 
 int main()
@@ -7613,9 +7613,8 @@ product in a C++ @code{struct}:
 
 @example
 #include <iostream>
-using namespace std;
-
 #include <ginac/ginac.h>
+using namespace std;
 using namespace GiNaC;
 
 struct sprod_s @{
@@ -8007,9 +8006,8 @@ as follows:
 #include <iostream>
 #include <string>   
 #include <stdexcept>
-using namespace std;
-
 #include <ginac/ginac.h>
+using namespace std;
 using namespace GiNaC;
 @end example