From f129e8b48e44d5e3258ed14d517447e9d1391a6d Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 30 Aug 2005 10:54:36 +0000 Subject: don't use explicit so that STL can be used small fixes for tutorial examples added typed flext::NewAligned svn path=/trunk/; revision=3463 --- externals/grill/flext/source/flsupport.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'externals/grill/flext/source/flsupport.h') diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index b1ec43cd..b6bb4eaa 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -76,6 +76,9 @@ public: //! Get an aligned memory block static void *NewAligned(size_t bytes,int bitalign = 128); + // same with templated type + template + static T *NewAligned(size_t times,int bitalign = 128) { return static_cast(NewAligned(times*sizeof(T),bitalign)); } //! Free an aligned memory block static void FreeAligned(void *blk); //! Test for alignment -- cgit v1.2.1