[ub] new revision of p0593

David Vandevoorde daveed at edg.com
Fri Feb 9 23:25:28 CET 2018



> On Feb 9, 2018, at 4:57 PM, Richard Smith <richardsmith at googlers.com> wrote:
> 
> On Fri, 9 Feb 2018 at 13:08, Myria <myriachan at gmail.com <mailto:myriachan at gmail.com>> wrote:
> Is it worth mentioning that an implementation may have other
> mechanisms that create storage in the manner of malloc?  For example,
> it'd make sense for VirtualAlloc or mmap to create implicit objects
> just like the standard malloc functions.
> 
> Sounds like a good change to me.
>  

It would be nice if we could indicate that in a portable way.  The default is wrong for attributes, unfortunately, but otherwise something like:

	[[blessed_storage]] void* my_memory_map(…);

would have been useful.

Incidentally, I’m not too fond of the name “bless”.  Maybe “implicit_lifetime”?

	Daveed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/ub/attachments/20180209/86d37bb2/attachment.html 


More information about the ub mailing list