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:
parent
a4ece21461
commit
1720addc4e
5 changed files with 8 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue