From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44484 invoked by alias); 5 Oct 2016 14:05:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 43487 invoked by uid 89); 5 Oct 2016 14:05:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy= X-HELO: mail-oi0-f45.google.com Received: from mail-oi0-f45.google.com (HELO mail-oi0-f45.google.com) (209.85.218.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Oct 2016 14:05:18 +0000 Received: by mail-oi0-f45.google.com with SMTP id m72so101793587oik.3 for ; Wed, 05 Oct 2016 07:05:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Za3y70quzUGhy4pDJqmajlP3J3HnrEvQBjedIzXHPJk=; b=A7AgLID7lmOOKUM6fnanYz2zjwygsNexP9DGuou8gy9lCphaBzgx8wUZwGmWrfYlmL O9TpmxnzQw1APYPa44LrKf5VVa9arZPV/wKJy5f6oqwcp6lIG4g3ABFunseWKHuEJAvE oeF+0ZemjXJt0Zja8ymdo6Kp8++8NaTR7DUP2XO+TwI0Sl+8ndWN4H24/lvmIugGDSmE S/TWXGY0C3cPn2sfND6soy2K38SWGEL6YsiaY8jAg0wRwFp7doHOa3xS8dZBAoC9xcpo FrGbDYj01YolMeUvTz+rKh4e4yNYhdpZi5u8vEhcu1EaTuO07WcPkoaNS4FGqVqIZpaJ XTKA== X-Gm-Message-State: AA6/9RlbT43RLbxF95ir3dNAboS+CEi8ccbcoIqP6OV9dILooHWYBrkf18fIXcoFcXSujvocDSNL/DbbGt8IYKf0 X-Received: by 10.157.11.92 with SMTP id p28mr5563955otd.109.1475676316636; Wed, 05 Oct 2016 07:05:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.105.167 with HTTP; Wed, 5 Oct 2016 07:04:55 -0700 (PDT) In-Reply-To: <20161005092926.GP3223@redhat.com> References: <20161005092926.GP3223@redhat.com> From: Jason Merrill Date: Wed, 05 Oct 2016 14:05:00 -0000 Message-ID: Subject: Re: C++ PATCH for C++17 class template placeholders To: Marek Polacek Cc: gcc-patches List Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00239.txt.bz2 On Wed, Oct 5, 2016 at 5:29 AM, Marek Polacek wrote: > On Wed, Oct 05, 2016 at 08:58:08AM +0200, Marc Glisse wrote: >> On Tue, 4 Oct 2016, Jason Merrill wrote: >> >> > C++17 adds the ability to omit the template arguments for a class >> > template when declaring a variable with an initializer, much like auto >> > but supporting a wider variety of initialization. This is intended to >> > replace functions like make_tuple. >> >> Nice. Is there a macro to test for this feature? I couldn't find it in the >> latest sg10 list. > > And in a similar vein, is there a macro for Selection statements with > initializer? Can't find it anywhere. Not currently, for either. The rationale for not defining macros for some features is that for convenience features like this, anyone concerned about portability will just write code the old way. Jason