]> www.ginac.de Git - ginac.git/blobdiff - doc/examples/compile2.cpp
Replace mktemp with mkstemp.
[ginac.git] / doc / examples / compile2.cpp
index fb0813cb6f0f33e4fbecfd88044c5363abecddd6..faff99cc9033b6c4379b1aef178d662fe459f921 100644 (file)
@@ -22,7 +22,7 @@ int main()
        cout << "Enter an expression containing 'x' and/or 'y': ";
        cin >> s;
        // Expression now in expr
-       ex expr(s, lst(x,y));
+       ex expr(s, lst{x,y});
  
        cout << "start integration of " << expr << " ..." << endl;
 
@@ -46,7 +46,7 @@ int main()
 
        // Optionally, compile with custom compiler flags:
        // setenv("CXXFLAGS", "-O3 -fomit-frame-pointer -ffast-math", 1);
-       compile_ex(lst(expr), lst(x,y), fp);
+       compile_ex(lst{expr}, lst{x,y}, fp);
 
        // Starting VEGAS
        // By invocation of compile() the expression in expr is converted into the