220 4734 <CAGsORuDCXfk_2LiQj5Tez4TH1Dz1H-LMYm3-c33fS+vPkGrCzQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <lichray@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Remove vector<bool>?
Date: Wed, 29 May 2013 18:07:08 -0400
Lines: 36
Approved: news@gmane.org
Message-ID: <CAGsORuDCXfk_2LiQj5Tez4TH1Dz1H-LMYm3-c33fS+vPkGrCzQ@mail.gmail.com>
References: <CAGsORuDQdeWAO5yjA6=h0hW9Y0Sj4F1gcHB61udw5JFmtx+g4Q@mail.gmail.com>
	<83a68179-f8cd-42e9-a880-2bd797b30c28@isocpp.org>
	<CAGg_6+NDacUk23QRd5PTNKG5XYHaw9e18r4COD-6SzQM9vTZbg@mail.gmail.com>
	<a077c61e-bf59-4d4d-8aa4-b6a810e47595@isocpp.org>
	<CAGsORuAQGpB5UxBr+GetOLxyPpBs93MEsZNV4RGk-o_c-_buvg@mail.gmail.com>
	<CAGg_6+O_XjW4e_yci=VmVY1Af9vGH=2W-meFfj2gb7aa7KEk1A@mail.gmail.com>
	<CAGsORuCLLH5tCmnir7tVM68rGmYdnfL2VtxZ9XMK8=aEDppCqw@mail.gmail.com>
	<CAGg_6+Pdfny6cwyb14OR-KgtUzn7wcHxgbcoUdWPYC76VniKcw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1369865229 30225 80.91.229.3 (29 May 2013 22:07:09 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 29 May 2013 22:07:09 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUILMGRQMARBDPYTGGQKGQEUUOEFHI@isocpp.org Thu May 30 00:07:10 2013
Return-path: <std-proposals+bncBCUILMGRQMARBDPYTGGQKGQEUUOEFHI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-fa0-f70.google.com ([209.85.161.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBDPYTGGQKGQEUUOEFHI@isocpp.org>)
	id 1UhoWU-00055j-Bo
	for gclcip-std-proposals@m.gmane.org; Thu, 30 May 2013 00:07:10 +0200
Original-Received: by mail-fa0-f70.google.com with SMTP id w1sf7606976fad.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 May 2013 15:07:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere: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:x-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=8hH2hsnQOQoK2gFu4mvD0/kyCu6Iig9Xu8hi7jhl4Iw=;
        b=TIt0k4Q7StiWNXtCUmlTnObH3Ez99BnGVIf55Ps0mVKGLjm2Ak3dN1B/5jMDt3IYw0
         o0LFakchNO2rKc4zS5xecS86zxDFO5Omd1Tm+tI8Fwaa/dTVwsUGzUGxBTsr7YWDfLiz
         tPWPjPn3Pxj2HELbZIAaB213GwxMXZ3bGw0ri97vPyQMMlWmitU33q+btveUmSA4b3+f
         OeeITonGlilMBP2XSIrQkNyfwDUBc51HhO69okQ1IxbB1xSTn1yLF50Gne7OEj8+UFrs
         BX5yCrNaWKvD4lgLHFN+eDtR9Rm7GuYLU4amF2g9XtKJvaHCAmSq8EdcwbpYVgvS14kk
         gNzw==
X-Received: by 10.180.210.161 with SMTP id mv1mr8532828wic.1.1369865229966;
        Wed, 29 May 2013 15:07:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.105.228 with SMTP id gp4ls1716605wib.51.canary; Wed, 29
 May 2013 15:07:08 -0700 (PDT)
X-Received: by 10.14.207.131 with SMTP id n3mr6888667eeo.27.1369865228912;
        Wed, 29 May 2013 15:07:08 -0700 (PDT)
Original-Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [2a00:1450:4010:c03::22f])
        by mx.google.com with ESMTPS id h3si14345229eeo.11.2013.05.29.15.07.08
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 29 May 2013 15:07:08 -0700 (PDT)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 2a00:1450:4010:c03::22f as permitted sender) client-ip=2a00:1450:4010:c03::22f;
Original-Received: by mail-la0-f47.google.com with SMTP id fq12so9257890lab.34
        for <std-proposals@isocpp.org>; Wed, 29 May 2013 15:07:08 -0700 (PDT)
X-Received: by 10.112.60.195 with SMTP id j3mr2455822lbr.37.1369865228259;
 Wed, 29 May 2013 15:07:08 -0700 (PDT)
Original-Received: by 10.112.146.99 with HTTP; Wed, 29 May 2013 15:07:08 -0700 (PDT)
In-Reply-To: <CAGg_6+Pdfny6cwyb14OR-KgtUzn7wcHxgbcoUdWPYC76VniKcw@mail.gmail.com>
X-Original-Sender: lichray@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lichray@gmail.com designates 2a00:1450:4010:c03::22f as permitted
 sender) smtp.mail=lichray@gmail.com;       dkim=pass header.i=@gmail.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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4734
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4734>

On Wed, May 29, 2013 at 5:47 PM, Nevin Liber <nevin@eviloverlord.com> wrote:
> Because real users, and in all likelihood the majority of current users of
> vector<bool>, count on the space optimization even though it isn't
> normative, since that was most certainly the intent of the specialization.
> We don't live in an ivory tower.

When I say "optimization words" I mean the words those break the
container natural to allow the optimization.  If you remove the those words,
the optimization is disabled.  The real users can longer count on it.

> IMO, the correct "fix" is (1) address current users who need the space
> optimization that vector<bool> provides, and (2) vector (and generic code
> using vector) should neither know nor care that it is being instantiated
> with a bool.  If that isn't where we are heading, I see no reason to mess
> with either vector or vector<bool>.

That's my initial thought.  I don't like to bother vector<T>, either (
although it does not pollute the actual interfaces).  But the problem
is, how to address the "current users"?

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

-- 

--- 
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/?hl=en.



.
