C++ Logo

sg12

Advanced search

Re: [ub] new revision of p0593

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Fri, 09 Feb 2018 23:09:53 +0100
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)

which works as-if an object of type T were created at p,
reusing the existing values of the storage.

Jens

Received on 2018-02-09 23:14:58