Skip to content

Commit 8f5831f

Browse files
committed
change std::out_of_range constractor string (what_arg)
1 parent 99b9eb3 commit 8f5831f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boost/network/uri/decode.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ OutputIterator decode(const InputIterator &in_begin,
5959
OutputIterator out = out_begin;
6060
while (it != in_end) {
6161
if (*it == '%') {
62-
if (++it == in_end) throw std::out_of_range("out_of_range exception");
62+
if (++it == in_end) throw std::out_of_range("unexpected end of stream");
6363
value_type v0 = detail::letter_to_hex(*it);
64-
if (++it == in_end) throw std::out_of_range("out_of_range exception");
64+
if (++it == in_end) throw std::out_of_range("unexpected end of stream");
6565
value_type v1 = detail::letter_to_hex(*it);
6666
++it;
6767
*out++ = 0x10 * v0 + v1;

0 commit comments

Comments
 (0)