220 36574 <CAFk2RUbtYTmHWvwWGUgaL8=JgOhDz8W4CRio7Xq62nYt2oMhtg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Should the Default Allocator use Uniform Initialization?
Date: Mon, 8 Jan 2018 19:25:16 +0200
Lines: 48
Approved: news@gmane.org
Message-ID: <CAFk2RUbtYTmHWvwWGUgaL8=JgOhDz8W4CRio7Xq62nYt2oMhtg@mail.gmail.com>
References: <0c6b5fb2-c26f-4cd1-8a63-a3da77fb7d40@isocpp.org> <ad3e7a1f-eba9-4395-9ea1-2b4852fc921a@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1515432203 7910 195.159.176.226 (8 Jan 2018 17:23:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 8 Jan 2018 17:23:23 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRB7OSZ3JAKGQEJEJPOQY@isocpp.org Mon Jan 08 18:23:19 2018
Return-path: <std-proposals+bncBC5JHI7A7ALRB7OSZ3JAKGQEJEJPOQY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f72.google.com ([209.85.218.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRB7OSZ3JAKGQEJEJPOQY@isocpp.org>)
	id 1eYb8k-0001Vw-Se
	for gclcip-std-proposals@m.gmane.org; Mon, 08 Jan 2018 18:23:15 +0100
Original-Received: by mail-oi0-f72.google.com with SMTP id y195sf6122163oia.22
        for <gclcip-std-proposals@m.gmane.org>; Mon, 08 Jan 2018 09:25:18 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1515432318; cv=pass;
        d=google.com; s=arc-20160816;
        b=V1Lil1q8duA5Edop4r7g+LM+pE/K7KYe/DHoUP1cLyxpF27D2SYp3KshdfRT7+V+ga
         +2tqeIXNtlHxIvC2H9aMNNLfb+vaqd6CdeEdrGAu4j+zHtpMxq3Jux4JdCcd8pUizScW
         Qb0oKW9Y/Ha4JHgxTs4gw5l+gretFUTekh/NBumxjoYmZqPabXjPMLx9X9BBxKeQIrnl
         Bhmn3ekoNY9PHZ825xzj7FJhmSJ90lg0ecFW8Oz2UOhi/MTOOB+f2bChOOmSlurBMSAe
         /DMKrX+1Bt0c61aXaWaB1NxdRS9QicJ+79X378mlT6cxr/GriLaVRdJ9M8/ER9pAeRYp
         0e7A==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=FVfXCpHhnJRHMsiRGccWH1H5l+Ndh0zYrtnihZao8sU=;
        b=ZZNY7zUdkZN6sMXeA11d4R8EPeKb0/Z5KDSmvc2syES7oLQy9VqwGmZHVMvt4JUaAY
         ixQUrejOD/6Q58N0pAQWoelF2LLbS1wwW/2bJRYTQwNsx594FraCxoC8c4RHfYOiJ1x5
         6B3V3DeyeuKBxHrRdXr4lb9TaIOVJKJEI90quIPjXJS+uCLJ7n37nuZMfDGEsVmODbt5
         CCID16EVGZBeMhFVcEPj91uv+8r6axYg3q/o0a6j10e0Kg8gUhlTBR89AYPaPNjG6tCa
         IQi7UgaiDwpTbhRZ4LnpwdReV72viRVC4qOkRIlSJINgijjME3MYsqC5prQjTyR4cBiJ
         FhYQ==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=ld4HdM/X;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject: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;
        bh=FVfXCpHhnJRHMsiRGccWH1H5l+Ndh0zYrtnihZao8sU=;
        b=qdJMtDXFSY0usk+BRnOEVIfA8FbkUl00yAjtHXM2b2OTWKDneIsmTwv3TMOCiS9Wmr
         uoE23EOr3Aa5YNoN/LV4dZyngLNBVlFekEYw3njB4QEuyln34bOWFAzOuN3Plys+uWSS
         4CkipfrarYFK7Dnx2pvksat5xSq5iAamEAs4av9Gdr+IcXZObYbqEZffYsDWg8oigpt2
         G07zy8PtzZ8XswWIuqaj4xni7T27QiB0PGYHx0kqdq33zRm83dtEi743HXglNeaeTWvh
         AOK1J4nvzQBy//677xC5dKZege+6RRQP9KxaJy04fqHDwGBYZet6sPW5nvFOo4fNTotU
         fLlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=FVfXCpHhnJRHMsiRGccWH1H5l+Ndh0zYrtnihZao8sU=;
        b=cNEcuU0yD6AOuOzAWcr5jIC4DOmyly81W0LQ5LL5YomeuqWGniREq8d/r8cqyNSGN5
         aA7ch1QU4l8wl8CXbW/TW9t7a3P7yFPsV0/CvZ1Kywc5pbUSXi9AUa4jbs17DZ54ffsr
         TSNlqHqvUh+XMEYZ7D773M72nd7ddhK+s1kSJHsqHnOdCS6/u62ieT3lBBzhlzFJUZM3
         tJ3OqHzPZ5JTRY8UzmgRz4WDrfFK+m3Vr+3tbNwg5tOytkcun+u8RqdMLUTl8AEQN4ha
         xyDxr2wpVqfumbBSEos37WH7eXT5jiBY+HiOfLG9YKE+MDN11ayynsRnDejbJn+Rbrnc
         JDMw==
X-Gm-Message-State: AKwxytexWePhb6iZdnZM7+IJATIQV2BXGlP1WbYU0rc9QHbLdHiGtq7/
	3rOMradA71NKTgGJ5Bg1lls5WA==
X-Google-Smtp-Source: ACJfBotDuYZvAqq9Hv3u6nEFR5zuhsidAqhhRJVtTUcyIcTxIdiiNI8oP5hfouy4e4CrMOKkuCUNHQ==
X-Received: by 10.202.206.194 with SMTP id e185mr3844403oig.107.1515432318067;
        Mon, 08 Jan 2018 09:25:18 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.62.24 with SMTP id a24ls209866otd.10.gmail; Mon, 08 Jan
 2018 09:25:17 -0800 (PST)
X-Received: by 10.202.244.134 with SMTP id s128mr4483753oih.327.1515432317179;
        Mon, 08 Jan 2018 09:25:17 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1515432317; cv=none;
        d=google.com; s=arc-20160816;
        b=r94ns569WzcpT+0PKxrV5Jqf071vfQo+5bEQnvOweUOP3vVvE/1FphPa57lh98lNnO
         5r/1mrmxgJKwUw1GaEDpiFSBWHnCyOUcRYocTLLboQrw12tKHg0ASJ5hIrtGFugfdZPq
         itEJnTYt7UFBbLdd0op4tMD2c5muL7fTnTPUBWdE2S+MGsH323yBzblEQKCVLsWcla3E
         Pz+ZzCiQp6s7HCyef27ocstbXVgt2w1KhYo0MLGgaV+YpS3uXbjk2gMWrylKlimUyweo
         ynYrSgyHSaPamqBJLH5vE3T1N3O3f1A1nzw2LbWU4F/y/LW+p7gI3VFP1t3jUdMlwDJo
         e0Ag==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=KwJYsayc3009/b8pQjRrwwYyG/wp2+tLerhOX9rDXfg=;
        b=PWM8EfySt/MtG/0F+8kcTdRw7Ci02qpNg+JrcEn7vr3XW02ggHV5VOkz8Ae8HVp0f6
         zdxLxZp79/jBtq8JTPODy+aweFce5P4puHm2sIiwAjV9hgKjOh7Hd7jsmqZBJ46kqptQ
         /u/moP27cn2pDejE8qYY2UxOGgvcfgA5pEN8oxr0ZycIOXiS6KvS18fZVk/tTHGdttoo
         mmJiWtSx4dmQFbHWY5W7mce+IDw9uhyu1VZpgmI/vUxbUdQM3/BQe0gnvWf/UAjwwLaf
         fq8VToVm8uLiCm7M3NBkYTnUMbvRy/2vAAoqu0j+CRKp/4a5BvNv7K+PIFgA0y2Ra5FU
         2Clg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=ld4HdM/X;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65])
        by mx.google.com with SMTPS id k36sor2439139otb.171.2018.01.08.09.25.17
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Mon, 08 Jan 2018 09:25:17 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65;
X-Received: by 10.157.4.230 with SMTP id 93mr6912999otm.291.1515432316699;
 Mon, 08 Jan 2018 09:25:16 -0800 (PST)
Original-Received: by 10.157.43.248 with HTTP; Mon, 8 Jan 2018 09:25:16 -0800 (PST)
In-Reply-To: <ad3e7a1f-eba9-4395-9ea1-2b4852fc921a@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=ld4HdM/X;       spf=pass
 (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65
 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:36574
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36574>

On 8 January 2018 at 18:25, Nicol Bolas <jmckesson@gmail.com> wrote:
>
>
> On Monday, January 8, 2018 at 11:16:36 AM UTC-5, Jakob Riedle wrote:
>>
>> Hello Folks,
>>
>> currently, std::allocator (and std::allocator_traits) use value
>> initialization, that is placement new (p) ().
>> .
>> However, this prevents it from initializing aggregates (see here).
>>
>> Since using uniform initialization is the recommended (as of C++14) way of
>> initializing variables,
>
>
> Recommended by whom? It's broken. Uniform initialization can hide
> constructors. Its narrowing restrictions, especially with forwarded
> argument, play havoc with initialization.
>
> Uniform initialization is good syntax bound to bad initialization rules. It
> is not some default recommendation for initializing variables.
>
>>
>> std::allocator and std::allocator_traits should follow this guideline.
>> I think, we can all agree, that in general, not being able to emplace()
>> aggregates is an incompleteness.
>
>
> Yes. That's why LWG-2089 exists. I've written something that covers the
> proposed solution, corrects it, and thoroughly investigates all of the
> issues around it and pretty much every possible language and library
> solutions.
>
> And if you have another possible solution not on that list, please let me
> know.


I plan to propose allowing paren-initializing aggregates. That
proposal should appear in the pre-Jacksonville
mailing.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFk2RUbtYTmHWvwWGUgaL8%3DJgOhDz8W4CRio7Xq62nYt2oMhtg%40mail.gmail.com.

.
