3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-08 15:13:23 +00:00

remove a bunch of string copies in the API

thanks to C++20
This commit is contained in:
Nuno Lopes 2022-10-26 18:22:55 +01:00
parent a4ece21461
commit 1720addc4e
5 changed files with 8 additions and 14 deletions

View file

@ -383,8 +383,7 @@ extern "C" {
Z3_string s) {
Z3_TRY;
//LOG_Z3_optimize_from_string(c, d, s);
std::string str(s);
std::istringstream is(str);
std::istringstream is(s);
Z3_optimize_from_stream(c, d, is, nullptr);
Z3_CATCH;
}