Boost logo

Boost Users :

From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2006-11-16 22:55:40


Hi Dean,

Dean Kassmann wrote:
> With the new changes to asio error handling; I'm updating some
> code and running into a problem on windows with vc8
[...]
> if (error == boost::asio::error::success) {
> // doesn't work because error_code::category() differs
> }
[...]
> doesn't seem to work because the error_code categories differ.
> Am I doing somthing wrong/stupid?

You should probably still use "if (!error) ...". Thanks for
pointing this out -- it's something I had overlooked. I should
remove the error::success constant since you're right and there
is no single value for success any more.

Cheers,
Chris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net