aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-08-30 10:54:36 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-08-30 10:54:36 +0000
commitf129e8b48e44d5e3258ed14d517447e9d1391a6d (patch)
tree1ed0d1151718060cf00a7794558eb79d7cb210be /externals/grill/flext/source
parent5323bd2c4efc3796c35e25fc5111aad7dead65f6 (diff)
don't use explicit so that STL can be used
small fixes for tutorial examples added typed flext::NewAligned svn path=/trunk/; revision=3463
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r--externals/grill/flext/source/flsupport.h3
1 files changed, 3 insertions, 0 deletions
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<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);
//! Test for alignment