mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 18:45:33 +00:00
enforce stringstream formatting to avoid default format routine. fixes issue #149
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3fd5d0eaba
commit
940fed16e1
6 changed files with 71 additions and 44 deletions
|
@ -45,7 +45,9 @@ void context_params::set_bool(bool & opt, char const * param, char const * value
|
|||
opt = false;
|
||||
}
|
||||
else {
|
||||
throw default_exception("invalid value '%s' for Boolean parameter '%s'", value, param);
|
||||
std::stringstream strm;
|
||||
strm << "invalid value '" << value << "' for Boolean parameter '" << param;
|
||||
throw default_exception(strm.str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue