Using emplace leading to memory corruption
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Sep 29 02:45:52 PDT 2013
On 9/29/13, monarch_dodra <monarchdodra at gmail.com> wrote:
> Remember though that when emplacing a class over some memory, you
> must account for any extra alignment (though that doesn't seem to
> be a problem here).
emplace does do a check for misalignment this internally with the
testEmplaceChunk helper function. It would throw otherwise.
More information about the Digitalmars-d
mailing list