From: Dean M. B. <mik...@gm...> - 2011-01-21 08:17:31
|
On Fri, Jan 21, 2011 at 4:08 PM, Max Malmgren <ma...@kt...> wrote: > Hi! See below for my call stack information at the moment of error. I will try to investigate a little on my own, even though I am not very experienced at c++ or boost. > For convieniency, here is the method that seems to fail: > > boost::asio::ip::address_v4 address::to_v4() const > { > if (type_ != ipv4) > { > std::bad_cast ex; > boost::throw_exception(ex); > } > return ipv4_address_; > } > > Seems that type_ != ipv4, though I have no idea why. It seems to be some win-specific implementation above in the stack-trace, which would explain why it works on Ubuntu. > Sorry if I am wasting your time! > It looks like you're using IPv6 -- which IMO is a good thing, but not so good for cpp-netlib. :D This is a bug because I assumed that all servers will be using ipv4 addresses. Please file that as an issue in the issue tracker at http://github.com/cpp-netlib/cpp-netlib/issues -- have a good one and thanks for reporting the issue. :) (Also, next time, please don't top-post. :) ) -- Dean Michael Berris about.me/deanberris |