3
0
Fork 0
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:
Nikolaj Bjorner 2015-07-06 09:11:52 -07:00
parent 3fd5d0eaba
commit 940fed16e1
6 changed files with 71 additions and 44 deletions

View file

@ -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());
}
}