220 6919 <CAGNvRgD8ReLTRxo4aQzghcNf7NR-42PpjATvHNGEPa3OMkY7Mw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: =?ISO-8859-1?Q?Daniel_Kr=FCgler?= <daniel.kruegler@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Compressing Optional
Date: Thu, 3 Oct 2013 13:10:56 +0200
Lines: 27
Approved: news@gmane.org
Message-ID: <CAGNvRgD8ReLTRxo4aQzghcNf7NR-42PpjATvHNGEPa3OMkY7Mw@mail.gmail.com>
References: <9a40a660-b48b-49b7-9d39-85810a55ebcf@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-2
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1380798656 6089 80.91.229.3 (3 Oct 2013 11:10:56 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 3 Oct 2013 11:10:56 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCT7RVFA4QORBQFBWWJAKGQER4BWB4A@isocpp.org Thu Oct 03 13:11:00 2013
Return-path: <std-proposals+bncBCT7RVFA4QORBQFBWWJAKGQER4BWB4A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCT7RVFA4QORBQFBWWJAKGQER4BWB4A@isocpp.org>)
	id 1VRgo6-0007vw-6R
	for gclcip-std-proposals@m.gmane.org; Thu, 03 Oct 2013 13:10:58 +0200
Original-Received: by mail-wi0-f200.google.com with SMTP id hn9sf2761710wib.3
        for <gclcip-std-proposals@m.gmane.org>; Thu, 03 Oct 2013 04:10:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type
         :content-transfer-encoding;
        bh=4N6Nb4SuTY00/prTKbmAunMd4m9NZ4KBNDuEfBM5PBs=;
        b=asuT/xEtXYVnoFNdsK/qsSI+6w5Hgw2WEuc+jFMAeYzh3B+zy9UAvsnQW46UNS1dX+
         nPws8G4PVpLWoSG0p67pb1QikjKMr4JgpYUrDbrYNGmw38BbVnHpr+7oBKPQPq9g0d9Z
         TdJPK9VdNgB1RI6quAdBB/CjLj+nTbgAf4D/kxZ8NJxdBKZt3q1xbGiXngmxHFUTICX3
         4hkg+5JRfOmTxUISfr69pYlgQ5zHo8fCO1Bme6oFSfKUSdfObIME4ASu6nL5ZxL4xfjE
         S5MMZk6Vl7Ke1wbInm9JYdu3eDT47d+4WBSd5P9rFnwkN/pNuiSIM95sHLxxTmy1rH2v
         Cb/g==
X-Received: by 10.180.109.19 with SMTP id ho19mr928949wib.7.1380798657704;
        Thu, 03 Oct 2013 04:10:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.37.209 with SMTP id a17ls87691wik.40.canary; Thu, 03 Oct
 2013 04:10:56 -0700 (PDT)
X-Received: by 10.194.170.133 with SMTP id am5mr6737473wjc.42.1380798656495;
        Thu, 03 Oct 2013 04:10:56 -0700 (PDT)
Original-Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [2a00:1450:400c:c03::233])
        by mx.google.com with ESMTPS id gd9si2733980wic.69.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 03 Oct 2013 04:10:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of daniel.kruegler@gmail.com designates 2a00:1450:400c:c03::233 as permitted sender) client-ip=2a00:1450:400c:c03::233;
Original-Received: by mail-we0-f179.google.com with SMTP id x55so2426763wes.24
        for <std-proposals@isocpp.org>; Thu, 03 Oct 2013 04:10:56 -0700 (PDT)
X-Received: by 10.180.189.9 with SMTP id ge9mr1961409wic.52.1380798656392;
 Thu, 03 Oct 2013 04:10:56 -0700 (PDT)
Original-Received: by 10.216.153.8 with HTTP; Thu, 3 Oct 2013 04:10:56 -0700 (PDT)
In-Reply-To: <9a40a660-b48b-49b7-9d39-85810a55ebcf@isocpp.org>
X-Original-Sender: daniel.kruegler@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of daniel.kruegler@gmail.com designates 2a00:1450:400c:c03::233 as
 permitted sender) smtp.mail=daniel.kruegler@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=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-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:6919
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6919>

2013/10/2 Andrzej Krzemie=F1ski <akrzemi1@gmail.com>:
> template <typename T>
> struct optional_optimized_disengaged_state_traits<T*>
> {
>   constexpr static bool is_optimized =3D true;
>   constexpr static raw_storage_of_size<T> const& value() {
>     return cast( (T*)1 );
>   }
> };

Note that this function could not be used in constant expressions,
because the (implied) use of reinterpret_cast is not valid in this
context.

- Daniel

--=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/.

.
