Boost logo

Boost :

Subject: Re: [boost] boost::system::error_code and std::error_code
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2014-06-09 04:15:26


Le 09/06/14 10:01, Vinícius dos Santos Oliveira a écrit :
> Is there any plans to add a conversion operator from boost::error_code to
> std::error_code or alike?
What about defining boost::system::error_code as std::error_code when
available?

Vicente

> I was designing a class that I'd like to be usable pleasantly with boost
> variant of error_code and C++11 variant of error_code, but my design was
> getting rather complicated (multiple inheritance, templates with no type
> deduction, ...) and I give up after I came to the make_error_code function,
> which would be called by the error_code constructor if is_error_code_enum
> was specialized (which was) and we cannot overload function based on return
> type (then would be difficult to make it work with
> boost::system::error_code and std::error_code).
>
> TL;DR: What the plans for migration from boost::system::error_code to
> std::error_code?
>
>


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