3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-25 03:24:01 +00:00

Revert "Merge pull request #8190 from Z3Prover/copilot/fix-std-format-usage"

This reverts commit d9bdb6b83c, reversing
changes made to 8b188621a5.
This commit is contained in:
Lev Nachmanson 2026-01-13 18:18:07 -10:00
parent 3bf271bb42
commit d5e0216070
7 changed files with 104 additions and 87 deletions

View file

@ -17,7 +17,6 @@ Revision History:
--*/
#include<sstream>
#include<format>
#include "ast/ast_pp.h"
#include "ast/array_decl_plugin.h"
@ -53,7 +52,9 @@ namespace datalog {
if (low <= val && val <= up) {
return true;
}
m_manager->raise_exception(std::format("{}, value is not within bound {} <= {} <= {}", msg, low, val, up));
std::ostringstream buffer;
buffer << msg << ", value is not within bound " << low << " <= " << val << " <= " << up;
m_manager->raise_exception(buffer.str());
return false;
}