[PD-cvs] externals/grill/flext/source flsupport.h,1.95,1.96

Thomas Grill xovo at users.sourceforge.net
Tue Aug 30 12:54:38 CEST 2005


Update of /cvsroot/pure-data/externals/grill/flext/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7025/source

Modified Files:
	flsupport.h 
Log Message:
don't use explicit so that STL can be used
small fixes for tutorial examples
added typed flext::NewAligned


Index: flsupport.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.h,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -d -r1.95 -r1.96
*** flsupport.h	9 Aug 2005 11:02:16 -0000	1.95
--- flsupport.h	30 Aug 2005 10:54:36 -0000	1.96
***************
*** 77,80 ****
--- 77,83 ----
  	//! Get an aligned memory block
  	static void *NewAligned(size_t bytes,int bitalign = 128);
+     // same with templated type
+     template<typename T>
+     static T *NewAligned(size_t times,int bitalign = 128) { return static_cast<T *>(NewAligned(times*sizeof(T),bitalign)); }
  	//! Free an aligned memory block
  	static void FreeAligned(void *blk);





More information about the Pd-cvs mailing list