From patchwork Fri Dec 23 17:06:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 133100 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 51C52B71D1 for ; Sat, 24 Dec 2011 04:07:02 +1100 (EST) Received: (qmail 14267 invoked by alias); 23 Dec 2011 17:06:50 -0000 Received: (qmail 14247 invoked by uid 22791); 23 Dec 2011 17:06:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-we0-f175.google.com (HELO mail-we0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Dec 2011 17:06:26 +0000 Received: by werm13 with SMTP id m13so4628100wer.20 for ; Fri, 23 Dec 2011 09:06:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.136.152 with SMTP id w24mr8562385wei.43.1324659984967; Fri, 23 Dec 2011 09:06:24 -0800 (PST) Received: by 10.216.69.7 with HTTP; Fri, 23 Dec 2011 09:06:24 -0800 (PST) Date: Fri, 23 Dec 2011 17:06:24 +0000 Message-ID: Subject: [v3] implement LWG 2056 From: Jonathan Wakely To: "libstdc++" , gcc-patches Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org PR libstdc++/49204 * include/std/future (future_errc): Implement LWG 2056. tested x86_84-linux, committed to trunk Index: include/std/future =================================================================== --- include/std/future (revision 182657) +++ include/std/future (revision 182658) @@ -60,10 +60,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Error code for futures enum class future_errc { - broken_promise, - future_already_retrieved, + future_already_retrieved = 1, promise_already_satisfied, - no_state + no_state, + broken_promise }; /// Specialization.