[Bug c++/15795] No way to teach operator new anything about alignment requirements

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 4 13:42:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-06-04 13:42 -------
As for a workaround: you can of course overload operator new, and do 
a trick like 
  struct Align16 {} align16; 
 
  // overload operator new to take an argument of type Align16 
 
  __m128 *p = new(align16) __m128; 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795



More information about the Gcc-bugs mailing list