220 30940 <32cfea0a-7df8-47cf-47fd-549985f12295@wanadoo.fr> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: compressed std::bitset<N>
Date: Thu, 16 Feb 2017 08:04:50 +0100
Lines: 79
Approved: news@gmane.org
Message-ID: <32cfea0a-7df8-47cf-47fd-549985f12295@wanadoo.fr>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------E501AC91D396CE08C842A594"
X-Trace: blaine.gmane.org 1487228693 20118 195.159.176.226 (16 Feb 2017 07:04:53 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 16 Feb 2017 07:04:53 +0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.7.1
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDH67CONY4PBBE46SXCQKGQELPKW7ZI@isocpp.org Thu Feb 16 08:04:49 2017
Return-path: <std-proposals+bncBDH67CONY4PBBE46SXCQKGQELPKW7ZI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDH67CONY4PBBE46SXCQKGQELPKW7ZI@isocpp.org>)
	id 1ceG7T-0004gP-Pv
	for gclcip-std-proposals@m.gmane.org; Thu, 16 Feb 2017 08:04:47 +0100
Original-Received: by mail-lf0-f69.google.com with SMTP id j90sf3737850lfi.3
        for <gclcip-std-proposals@m.gmane.org>; Wed, 15 Feb 2017 23:04:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:message-id:date:user-agent:mime-version
         :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=JExkSCatKstIH5b3KJYWz3NTJBq4ptyI8wXwKr8/Z3I=;
        b=k0H8RXcyU7NR8iNiyCBWB7XsdaKjYjuvN7RezWqnaMzzRHasTvWKBhkMGuqPcxv8Si
         Lfk8DDCftebuWhu8jQyUUyYOAIjBXia0yQUPLuWEl7Yq51MtqotsjQtBfA1bdWOsYt6b
         xGpVbWdk2U6FKy0q3R9pghXkntZ+ZgjsUcMIFStOxF+us007sukPgkEbZQnqW3fVlZs9
         GIaellMgijXDoO18eq1XPdTgyZ+cL66bQDETfwAxYsRz2QI9pxagGMayCvf+ugU2HFH0
         0CX3TzdmdYbWPx3VZZ+lh8zR5TAT6PjXXFl7fn0BcU4+RuiMxIleLNyEpWC8qB7/YIdl
         mcQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:message-id:date:user-agent
         :mime-version: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=JExkSCatKstIH5b3KJYWz3NTJBq4ptyI8wXwKr8/Z3I=;
        b=Em2P9xzcw2Ql3+D59lT68mGA7wMbTr86bSG5mx8MTllnApzEUeXUzdyCNvG9zzrAo9
         jfLZECMaL4SvqKGDGYx0DZjjrZ1fkRgEOfW7ORSbtn8CM2EyOIguHegEEjD01uGR/1Up
         md3SsznNsp/bYNOebMbwJzX+ZD5PQ7hsUypE8rgmptgTRD2Ip3ES1KQw4l2I9a7jifWh
         8GI++6JQk2YS3WeS+oZvjQVhPUJQx6bFrwTZ8cLlF09y6ACh2zzMd60qJx3bTT9C64aH
         8hjJVdLijKE5nv3b6HZ3tiouhMXswdvy5xMQQ+2Eev9CLmaZv9NSgizx8WmLdS1fjr5y
         ImLA==
X-Gm-Message-State: AMke39n9mLgjePjRbnAdbaufANwrTJYcV/IzQL8kIwmDfrBZ9n71IU0vuGyoBkEN/UShJg==
X-Received: by 10.25.223.67 with SMTP id q3mr82880lfj.0.1487228692343;
        Wed, 15 Feb 2017 23:04:52 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.6.146 with SMTP id 140ls1154525wmg.26.canary-gmail; Wed, 15
 Feb 2017 23:04:51 -0800 (PST)
X-Received: by 10.223.136.238 with SMTP id g43mr669240wrg.189.1487228691193;
        Wed, 15 Feb 2017 23:04:51 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp02.smtpout.orange.fr. [80.12.242.124])
        by mx.google.com with ESMTPS id s20si8103128wrb.195.2017.02.15.23.04.51
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Wed, 15 Feb 2017 23:04:51 -0800 (PST)
Received-SPF: neutral (google.com: 80.12.242.124 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.124;
Original-Received: from imac-de-vicente-botet-escriba.home ([92.139.36.206])
	by mwinf5d49 with ME
	id lK4q1u00D4Srar803K4q1d; Thu, 16 Feb 2017 08:04:50 +0100
X-ME-Helo: imac-de-vicente-botet-escriba.home
X-ME-Auth: dmljZW50ZS5ib3RldEB3YW5hZG9vLmZy
X-ME-Date: Thu, 16 Feb 2017 08:04:50 +0100
X-ME-IP: 92.139.36.206
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.124 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mailfrom=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: <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:30940
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30940>

This is a multi-part message in MIME format.
--------------E501AC91D396CE08C842A594
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

I wanted to use bitset<8>,bitset<16>,bitset<32> to represent the mask of 
8,16 and 32 bits respectively but the sizeof them is 64 bits on the  
systems I've tested.

Wondering if others have suffered already of this situation.

How do you fill about adding a constraint on the implementation, so that 
the sizeof shall be respectively 8, 16, 32 bits.

If this is not backward compatible, would it be worth to define a 
different type?


Vicente

-- 
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/32cfea0a-7df8-47cf-47fd-549985f12295%40wanadoo.fr.

--------------E501AC91D396CE08C842A594
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <p><font size=3D"+1">Hi,</font></p>
    <p><font size=3D"+1">I wanted to use bitset&lt;8&gt;,</font><font
        size=3D"+1"> bitset&lt;16&gt;,</font><font size=3D"+1">
        bitset&lt;32&gt; to represent the mask of 8,16 and 32 bits
        respectively but the sizeof them is 64 bits on the=C2=A0 systems I'=
ve
        tested.</font></p>
    <p><font size=3D"+1">Wondering if others have suffered already of this
        situation. <br>
      </font></p>
    <p><font size=3D"+1">How do you fill about adding a constraint on the
        implementation, so that the sizeof shall be respectively 8, 16,
        32 bits.</font></p>
    <p><font size=3D"+1">If this is not backward compatible, would it be
        worth to define a different type?<br>
      </font></p>
    <p><font size=3D"+1"><br>
      </font></p>
    <p><font size=3D"+1">Vicente<br>
      </font></p>
  </body>
</html>

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/32cfea0a-7df8-47cf-47fd-549985f12295%=
40wanadoo.fr?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/32cfea0a-7df8-47cf-47fd-549985f12295=
%40wanadoo.fr</a>.<br />

--------------E501AC91D396CE08C842A594--

.
