C++ Logo

sg12

Advanced search

Re: [ub] new revision of p0593

From: Richard Smith <richardsmith_at_[hidden]>
Date: Sun, 11 Feb 2018 23:15:36 +0000
On Sun, 11 Feb 2018 at 14:56, Ion GaztaƱaga <igaztanaga_at_[hidden]> wrote:

> On 09/02/2018 23:09, Jens Maurer wrote:
> > On 02/09/2018 08:52 PM, Richard Smith wrote:
> >> Please find attached a revised version of P0593
> >
> > Regarding std::bless in particular: While that's probably
> > a useful facility for stuff such as mmap, I'd actually
> > like to see a
> >
> > T * result = std::bless<T>(p)
>
> +1
>
> This could also help optimizations as we declare that p only holds a
> type T and no any other type.
>

I'll make a note of this in the paper; this seems like a good thing for
SG12 to discuss in person (particularly whether we want just one function
or two here -- I think we probably want two).

Received on 2018-02-12 00:15:50