[cfe-dev] aligned 'new'

Anton Korobeynikov anton at korobeynikov.info
Sat Sep 3 10:51:36 PDT 2011


> Why do you need to change the language for that at all?
> At least for UNIX-like systems, you could just use a call to
> posix_memalign with your size,alignment pair and call the placement new
> on the result. Wrap it around in one or two macros (instance vs array)
> and it is done.
Because calls to new can be inserted by a compiler? :)

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list