220 4724 <51A6676D.8080809@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Remove vector<bool>?
Date: Wed, 29 May 2013 22:39:09 +0200
Lines: 145
Approved: news@gmane.org
Message-ID: <51A6676D.8080809@wanadoo.fr>
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> <FF769E17-643C-47FE-8A3E-D28436A4B9A6@gmail.com> <51A638CF.5050905@wanadoo.fr> <e9303d5e-f51d-433f-8557-fb993611223d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------040305050602000905010207"
X-Trace: ger.gmane.org 1369859954 7844 80.91.229.3 (29 May 2013 20:39:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 29 May 2013 20:39:14 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBB4GOTGGQKGQEOB3FM3A@isocpp.org Wed May 29 22:39:14 2013
Return-path: <std-proposals+bncBDH67CONY4PBB4GOTGGQKGQEOB3FM3A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f71.google.com ([74.125.82.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBB4GOTGGQKGQEOB3FM3A@isocpp.org>)
	id 1Uhn9O-0004S2-1l
	for gclcip-std-proposals@m.gmane.org; Wed, 29 May 2013 22:39:14 +0200
Original-Received: by mail-wg0-f71.google.com with SMTP id a12sf5663484wgh.2
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 May 2013 13:39:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-beenthere:message-id:date:from:user-agent:mime-version:to:subject
         :references:in-reply-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=NE8msNuFTzMRT2zFanr6eO9O6AEneGXNqGBpJeaDdjY=;
        b=T6PV/JVh+kylfxqVikRo833ZgXgGEkWMsFt49u5zJLUwiBOKSDam/ojTMmXiWF5SLY
         Yw3+vlCYpDPoV433JA/gFLhVWhqak0xL/5gjnkGgz6xQvQkM1/b0WTz34C1yIh0+R0Fe
         iclgDmmBDiYKMjlbMpqiWf7TD/mIOhygSOPbM/G6BJJnHKiHbQW5QxKnFuNwdWYSVM9U
         jZSwvshiI4qRxvrWksQu0iFf7EcEURRxPdS3tRXYAC0+ghaerPwOKzK7Tha19/NYWb4x
         VdUPfdNGT8OnD06RUoR3vZugVqmnprQlZKoSBpq2IJVdg3B03s8a3J07dZCeBeanbZic
         eT0g==
X-Received: by 10.180.85.5 with SMTP id d5mr1605626wiz.0.1369859953500;
        Wed, 29 May 2013 13:39:13 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.160.130 with SMTP id xk2ls65665wib.15.gmail; Wed, 29 May
 2013 13:39:12 -0700 (PDT)
X-Received: by 10.15.56.198 with SMTP id y46mr6355871eew.58.1369859952464;
        Wed, 29 May 2013 13:39:12 -0700 (PDT)
Original-Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr. [80.12.242.128])
        by mx.google.com with ESMTP id s48si14306511eel.96.2013.05.29.13.39.12
        for <std-proposals@isocpp.org>;
        Wed, 29 May 2013 13:39:12 -0700 (PDT)
Received-SPF: neutral (google.com: 80.12.242.128 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.128;
Original-Received: from pc4.home ([2.11.193.225])
	by mwinf5d29 with ME
	id hwf91l00E4sEqES03wfAY1; Wed, 29 May 2013 22:39:12 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
In-Reply-To: <e9303d5e-f51d-433f-8557-fb993611223d@isocpp.org>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.128 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mail=vicente.botet@wanadoo.fr
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:4724
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4724>

This is a multi-part message in MIME format.
--------------040305050602000905010207
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Le 29/05/13 19:44, Nicol Bolas a =E9crit :
>
>
> On Wednesday, May 29, 2013 10:20:15 AM UTC-7, Vicente J. Botet Escriba=20
> wrote:
>
>     Le 28/05/13 22:12, Howard Hinnant a =E9crit :
>>     On May 28, 2013, at 4:00 PM, Nicol Bolas<jmck...@gmail.com>  <javasc=
ript:>  wrote:
>>
>>>     Personally, I agree with Howard; we should add a class that has all=
 of this functionality (presumably with some degree of required sizing) tha=
t 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, ho=
w much code will be broken because of this?
>>     Model this after the auto_ptr -> unique_ptr transition:
>>
>>     Step 1:  Introduce bit_vector (or whatever) and deprecate the vector=
<bool> specialization.  /Somehow/ motivate people to migrate.
>     I think that we will need also to add a std::*new_*vector<T> that
>     behaves like std::vector<T> but doesn't have the bool
>     specialization and *deprecate* std::vector :->
>
>
> So your solution to this significant-yet-relatively-minor-problem...=20
> is to rip out the entire class?
Yes, the suggestion was not only heretical but unrealistic. vector<T> is=20
one of the most used containers.
>
> I'm going to go with "no" on that.
>
>
I understand. Not deprecating vector<T> at all could surely help.

Vicente

--=20

---=20
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 e=
mail 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-proposa=
ls/?hl=3Den.



--------------040305050602000905010207
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3DISO-8859-1"
      http-equiv=3D"Content-Type">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">Le 29/05/13 19:44, Nicol Bolas a
      &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
      cite=3D"mid:e9303d5e-f51d-433f-8557-fb993611223d@isocpp.org"
      type=3D"cite"><br>
      <br>
      On Wednesday, May 29, 2013 10:20:15 AM UTC-7, Vicente J. Botet
      Escriba wrote:
      <blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:
        0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
        <div bgcolor=3D"#FFFFFF" text=3D"#000000">
          <div>Le 28/05/13 22:12, Howard Hinnant a &eacute;crit&nbsp;:<br>
          </div>
          <blockquote type=3D"cite">
            <pre>On May 28, 2013, at 4:00 PM, Nicol Bolas <a moz-do-not-sen=
d=3D"true" href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
Zt-gPy6b1mMJ">&lt;jmck...@gmail.com&gt;</a> wrote:

</pre>
            <blockquote type=3D"cite">
              <pre>Personally, I agree with Howard; we should add a class t=
hat 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 f=
eatures of vector&lt;bool&gt;. But the question remains: even with a drop-i=
n replacement, how much code will be broken because of this?
</pre>
            </blockquote>
            <pre>Model this after the auto_ptr -&gt; unique_ptr transition:

Step 1:  Introduce bit_vector (or whatever) and deprecate the vector&lt;boo=
l&gt; specialization.  /Somehow/ motivate people to migrate.</pre>
          </blockquote>
          I think that we will need also to add a std::<b>new_</b>vector&lt=
;T&gt;

          that behaves like std::vector&lt;T&gt; but doesn't have the
          bool specialization and <b>deprecate</b> std::vector :-&gt;<br>
        </div>
      </blockquote>
      <div><br>
        So your solution to this
        significant-yet-relatively-minor-problem... is to rip out the
        entire class?<br>
      </div>
    </blockquote>
    Yes, the suggestion was not only heretical but unrealistic.
    vector&lt;T&gt; is one of the most used containers. <br>
    <blockquote
      cite=3D"mid:e9303d5e-f51d-433f-8557-fb993611223d@isocpp.org"
      type=3D"cite">
      <div><br>
        I'm going to go with "no" on that.</div>
      <br>
      <br>
    </blockquote>
    I understand. Not deprecating vector&lt;T&gt; at all could surely
    help.<br>
    <br>
    Vicente<br>
  </body>
</html>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--------------040305050602000905010207--

.
