chriskohlhoff / asio-tr2

C++ TR2 proposal based on Asio
17 stars 5 forks source link

Add error condition for string-to-address make_address*() conversions #147

Closed chriskohlhoff closed 9 years ago

chriskohlhoff commented 9 years ago

For the case when the address fails to convert, as inet_pton does not define an errno for this case. Use invalid_argument if can't find anything better.

chriskohlhoff commented 9 years ago

Also for network_v* classes. If we find a better error than invalid_argument for address, then use a different error for the prefix length.

chriskohlhoff commented 9 years ago

Fixed in 9736907ad8c70fba31db54dd1e8146bc660d9f92.