220 12511 <CANu6V4XCodrfUf8+=pOJKd_HnMerpTbA6zzGeck9ddGwmdF0-A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Johannes Schaub <schaub.johannes@googlemail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Placeholder literals
Date: Mon, 25 Aug 2014 20:49:56 +0200
Lines: 26
Approved: news@gmane.org
Message-ID: <CANu6V4XCodrfUf8+=pOJKd_HnMerpTbA6zzGeck9ddGwmdF0-A@mail.gmail.com>
References: <570663A9-F617-442F-9B48-5B6E7311AE72@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1408992606 19241 80.91.229.3 (25 Aug 2014 18:50:06 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 25 Aug 2014 18:50:06 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCQPNCEZSQNBBVMK52PQKGQEKEW5KYY@isocpp.org Mon Aug 25 20:50:01 2014
Return-path: <std-proposals+bncBCQPNCEZSQNBBVMK52PQKGQEKEW5KYY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f72.google.com ([209.85.218.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCQPNCEZSQNBBVMK52PQKGQEKEW5KYY@isocpp.org>)
	id 1XLzL4-0004XU-T9
	for gclcip-std-proposals@m.gmane.org; Mon, 25 Aug 2014 20:49:59 +0200
Original-Received: by mail-oi0-f72.google.com with SMTP id a141sf71441314oig.3
        for <gclcip-std-proposals@m.gmane.org>; Mon, 25 Aug 2014 11:49:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=ps2li+1T7a2ABzJbVpsajDAFO/q66HFolqEqbmIy0Ko=;
        b=NKGfxL+ug7auJw8ueON4PalhZ5V/i62P+yNUx1Hp8PvCFqERxjNYkAy8ZWPOq9/Sbr
         a+uMqOmnn4aEqnBZilhFUG32XPDvbwSVtriu/jKBIyDmT/bFU54zWNKJW3FbdkZ+tXJW
         MXSvGBDpLaX4l3N2oaUfWwmP2FJjGnLuEkSQRhvSHhhI2su8HF0qDF7WSiVcOaOY3hY6
         KjUOL1bti+Ms8YREmaK+dmMVOHudIUbsRjEzSFcfQw89y882zwgUntdQ4WEVNcbI7evm
         NR7rdPiwxH0BqNiYWwX07JEO4R8M4QwSwZ4MaNd3dhAslQ8hl1Tn6rFrH95sUhMueM+a
         1mrA==
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:date
         :message-id:subject:from:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=ps2li+1T7a2ABzJbVpsajDAFO/q66HFolqEqbmIy0Ko=;
        b=RWGwxxlNMxR4VFEzZbxNM62Oj10iclsUKEgFL90k0ZI2SZtTA6QKYo1kr53eyob6b4
         yQmVaS6wh23Fns4PhBzAvOA+S0WrnPQp64haH4RTjCMtKISXuJPcQ9Di2RZjCGjU6JJ9
         TA7k1eM3ifJsQt/FGEAvWZJpPreFjp7lUjzjjS2+IwrSdegIzXwSxweCOVxjXg7MkL0D
         EO0f7CkuUVocY5+U9BJaS8zHSFrb/erab7CWiUC3V5UoyUs7TI+F/TzUNSHemeM4gK2s
         mmK7aAYDu4VdFOvuMjOG0qEUYdngfmsHdZUnZnPdd8AThMebbXyVZEaaF/e5rLM1tirK
         w22A==
X-Gm-Message-State: ALoCoQkz0OO+fBkZvmey7XisJ/FtV15dk0dpQSmhM55nxy/FdrmQ3eqQ0aXknG89sBTFacuWoJ3n
X-Received: by 10.43.28.197 with SMTP id rv5mr16454182icb.23.1408992597819;
        Mon, 25 Aug 2014 11:49:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.62.19 with SMTP id u19ls1556458igr.34.gmail; Mon, 25 Aug
 2014 11:49:56 -0700 (PDT)
X-Received: by 10.42.48.197 with SMTP id t5mr25811784icf.11.1408992596606;
        Mon, 25 Aug 2014 11:49:56 -0700 (PDT)
Original-Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [2607:f8b0:4001:c03::235])
        by mx.google.com with ESMTPS id m15si799890igt.38.2014.08.25.11.49.56
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 25 Aug 2014 11:49:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of schaub.johannes@googlemail.com designates 2607:f8b0:4001:c03::235 as permitted sender) client-ip=2607:f8b0:4001:c03::235;
Original-Received: by mail-ie0-f181.google.com with SMTP id rp18so9851879iec.26
        for <std-proposals@isocpp.org>; Mon, 25 Aug 2014 11:49:56 -0700 (PDT)
X-Received: by 10.50.32.2 with SMTP id e2mr16978610igi.33.1408992596419; Mon,
 25 Aug 2014 11:49:56 -0700 (PDT)
Original-Received: by 10.107.152.8 with HTTP; Mon, 25 Aug 2014 11:49:56 -0700 (PDT)
In-Reply-To: <570663A9-F617-442F-9B48-5B6E7311AE72@gmail.com>
X-Original-Sender: schaub.johannes@googlemail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of schaub.johannes@googlemail.com designates 2607:f8b0:4001:c03::235
 as permitted sender) smtp.mail=schaub.johannes@googlemail.com;
       dkim=pass header.i=@googlemail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:12511
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/12511>

2014-08-24 3:21 GMT+02:00 David Krauss <potswa@gmail.com>:
> Why not add literal operator templates returning placeholders?
>
> Compare:
> std::placeholders::_1 // old
> 1param // new
>
> Would it cause a problem to add it in the global namespace with no leading
> underscore? This saves the user a using directive and the name operator ""
> param is reserved to the language anyway. It should still be an ordinary
> part of the language, declared by <functional>.
>
> The name needs to be bikeshedded.
>

I think I have an excellent idea. Let us just reverse the order and
call it "1_". Then add 'operator "" _'. Reserve that "name".

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
