3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 23:05:46 +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

@ -395,8 +395,7 @@ extern "C" {
Z3_string s) {
Z3_TRY;
LOG_Z3_fixedpoint_from_string(c, d, s);
std::string str(s);
std::istringstream is(str);
std::istringstream is(s);
RETURN_Z3(Z3_fixedpoint_from_stream(c, d, is));
Z3_CATCH_RETURN(nullptr);
}