[PATCH] Add std::future_error constructor from future_errc
Jonathan Wakely
jwakely@redhat.com
Sat Nov 12 20:28:00 GMT 2016
On 12/11/16 02:34 -0500, Tim Song wrote:
>On Fri, Nov 11, 2016 at 10:39 PM, Jonathan Wakely <jwakely@redhat.com> wrote:
>> making the existing not-required-by-the-standard constructor private.
>
>> + public:
>> + explicit
>> + future_error(error_code __ec)
>> + : logic_error("std::future_error: " + __ec.message()), _M_code(__ec)+ { }
>
>That doesn't look private to me...
Whoops, fixed by this patch.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161112/3b9b1aee/attachment.bin>
More information about the Gcc-patches
mailing list