This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]