220 4683 <CAGsORuB=nwqRrg9xBvQEa0OuyrvkAj8UF8vcYAXU1vMnz2KBsw@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: Tue, 28 May 2013 16:28:06 -0400
Lines: 32
Approved: news@gmane.org
Message-ID: <CAGsORuB=nwqRrg9xBvQEa0OuyrvkAj8UF8vcYAXU1vMnz2KBsw@mail.gmail.com>
References: <CAGsORuDQdeWAO5yjA6=h0hW9Y0Sj4F1gcHB61udw5JFmtx+g4Q@mail.gmail.com>
	<CAGg_6+O9XJucMxwEhU+50Dzx0Tz7XRK0cWyrkUHuPSoEz9TqEw@mail.gmail.com>
	<e59c2a57-6068-4098-8667-5d086b2961fd@isocpp.org>
	<7371f4b8-8c47-4f17-af1e-902a5c8b17e4@isocpp.org>
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 1369772888 16349 80.91.229.3 (28 May 2013 20:28:08 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 28 May 2013 20:28:08 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUILMGRQMARBV5GSSGQKGQESK4MK4Q@isocpp.org Tue May 28 22:28:08 2013
Return-path: <std-proposals+bncBCUILMGRQMARBV5GSSGQKGQESK4MK4Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f69.google.com ([74.125.83.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBV5GSSGQKGQESK4MK4Q@isocpp.org>)
	id 1UhQV6-00037w-94
	for gclcip-std-proposals@m.gmane.org; Tue, 28 May 2013 22:28:08 +0200
Original-Received: by mail-ee0-f69.google.com with SMTP id c13sf6221269eek.4
        for <gclcip-std-proposals@m.gmane.org>; Tue, 28 May 2013 13:28:07 -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=DEGpmZT1DBARbxmszPCRNGiO1bAhe58ZilcZUE6j4zU=;
        b=w4Ft6hqnIqQ29qb5tTdKpmk6nyS3ELron2LGnW4IkBXXDiHCKKoTIjCExXFqPXQ/eS
         5226JMWVihRAKoTJMbdVM6KbT8t6PytLEC8YGTQ/dunEdMco4vQoWnj50dGGgycgQV40
         9CyVtPcKfDiypVGyiPG2D/0IziG/l0f408uKxHtcftJv6q0XNWaJIZrCTlHVmw4r9/ZU
         +YSOm+J4qAJCZKfYE8FO5ccuM6p9rS43eTQzRooSqcVlWKLiWrZIqbuu7U3V2arq4uNa
         /gGnwPhqS+CBpVrfXn/RjF5nM5EkkzoUR7uTifOtjh2wzFI6kEwZ1UQVEBHUVNl6DuD8
         unCg==
X-Received: by 10.112.157.39 with SMTP id wj7mr38776lbb.5.1369772887701;
        Tue, 28 May 2013 13:28:07 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.27.129 with SMTP id t1ls55649lag.3.gmail; Tue, 28 May 2013
 13:28:06 -0700 (PDT)
X-Received: by 10.152.30.103 with SMTP id r7mr17368455lah.25.1369772886776;
        Tue, 28 May 2013 13:28:06 -0700 (PDT)
Original-Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169])
        by mx.google.com with ESMTPS id o7si3671712lae.252.2013.05.28.13.28.06
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 28 May 2013 13:28:06 -0700 (PDT)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169;
Original-Received: by mail-lb0-f169.google.com with SMTP id 10so8295730lbf.0
        for <std-proposals@isocpp.org>; Tue, 28 May 2013 13:28:06 -0700 (PDT)
X-Received: by 10.152.4.234 with SMTP id n10mr10520751lan.5.1369772886603;
 Tue, 28 May 2013 13:28:06 -0700 (PDT)
Original-Received: by 10.112.146.99 with HTTP; Tue, 28 May 2013 13:28:06 -0700 (PDT)
In-Reply-To: <7371f4b8-8c47-4f17-af1e-902a5c8b17e4@isocpp.org>
X-Original-Sender: lichray@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lichray@gmail.com designates 209.85.217.169 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:4683
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4683>

On Tue, May 28, 2013 at 4:00 PM, Nicol Bolas <jmckesson@gmail.com> wrote:
> std::vector<bool> bvec{ ... };
> bvec[2].flip();

I noticed that.  It's OK to be fixed within `vector<T>`.

> Personally, I agree with Howard; we should add a class that has all of this
> functionality (presumably with some degree of required sizing) that would be
> a drop-in replacement for those who need the sizing features of
> vector<bool>. But the question remains: even with a drop-in replacement, how
> much code will be broken because of this?

I like the idea of providing a replacement, but I don't think a 'drop-in
replacement' is a requirement.  `vector<bool>` still works, and users
can rewrite their code if they want.

--
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.



.
