freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freepooma-devel] UninitializedVector implementation


From: Richard Guenther
Subject: [Freepooma-devel] UninitializedVector implementation
Date: Fri, 19 Nov 2004 16:41:40 +0100 (CET)

Hi!

Does anyone remember why UninitializedVector<T, Dim, StorageT>
uses the third template parameter as type for the storage
(which is then reinterpret_cast<>ed to T on access) and not
simply uses an array of  T[Dim]  here?  It looks like the current
implementation may inhibit proper aliasing analysis by the compiler.

UninitializedVector<> is exclusively used by the domain classes
at the moment.

Thanks,
Richard.

--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]