Subject: [Boost-bugs] [Boost C++ Libraries] #5110: address_v6 to_string on windows XP throws exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-22 16:30:11
#5110: address_v6 to_string on windows XP throws exception
-----------------------------------------------+----------------------------
Reporter: Remko Tronçon <remko@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
-----------------------------------------------+----------------------------
I have the following piece of code:
unsigned char a[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 17};
boost::array<unsigned char, 16> data;
for (int i = 0; i < 16; ++i) {
data[i] = a[i];
}
boost::asio::ip::address_v6 b(data);
b.to_string();
This works on all platforms I have tried it on (Linux, OS X, Windows 7),
except on Windows XP. On XP, it throws the following exception:
boost::exception_detail::clone_impl<struct
boost::exception_detail::error_info_injector<class
boost::system::system_error> >
An invalid argument was supplied
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5110> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC