Boost logo

Boost :

Subject: Re: [boost] boost::system::error_code and std::error_code
From: Vinícius dos Santos Oliveira (vini.ipsmaker_at_[hidden])
Date: 2014-06-09 04:37:41


2014-06-09 5:15 GMT-03:00 Vicente J. Botet Escriba <vicente.botet_at_[hidden]
>:

> What about defining boost::system::error_code as std::error_code when
> available?

I think it's even better than a conversion operator, but it'd need to be a
careful task.

When you use custom types with error code, it's not very clear if the user
should define the functions in boost namespace or the user type namespace
(relying on dependent namespace lookup).

-- 
Vinícius dos Santos Oliveira
https://about.me/vinipsmaker

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk