Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Question / Issue about Vector
Re: Question / Issue about Vector [message #12833 is a reply to message #12831] Tue, 20 November 2007 09:45 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
One ugly quick hack is to allocate bytes (as base class) in Vector, always reserve +15 bytes in total, and use (pointer to 15th element) & (~15) to get aligned start of memory.
But in such case I would probably prefer to not use UPP::Vector at all, and use only new/delete and fixed size ubyte array.

Maybe Mirek will have some more "proper" idea how to make Vector allocation aligned.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Juste simple question ~
Next Topic: Bug in Core06.cpp or in U++ Core value types tutorial
Goto Forum:
  


Current Time: Sun Apr 27 22:17:28 CEST 2025

Total time taken to generate the page: 0.00930 seconds