Skip to content

Commit 8d0ed1f

Browse files
committed
Fix name manling warning on Ubuntu 18
Caused by `std::toupper` being declared with the deprecated `throw ()` in the standard library and the meaning of this changing between C++ versions.
1 parent 2a02d3f commit 8d0ed1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solvers/smt2_incremental/smt_response_validation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ static optionalt<smt_termt> valid_smt_hex(const std::string &text)
230230
const std::string hex{text.begin() + 2, text.end()};
231231
// SMT-LIB 2 allows hex characters to be upper of lower case, but they should
232232
// be upper case for mp_integer.
233-
const mp_integer value = string2integer(make_range(hex).map(::toupper), 16);
233+
const mp_integer value =
234+
string2integer(make_range(hex).map<std::function<int(int)>>(toupper), 16);
234235
const std::size_t width = (text.size() - 2) * 4;
235236
return {smt_bit_vector_constant_termt{value, width}};
236237
}

0 commit comments

Comments
 (0)