On 07/24/2010 06:44 PM, Alan M. Carroll wrote:
Is it an official policy to not use STL, or is that just a legacy of ATS's C 
heritage?


I think this is mostly "heritage", but care should definitely be taken. ATS makes a big effort to avoid memory allocations on the heap in the critical path, and STL is not particularly good in that regards. We do have a few areas where STL containers have been introduced, so there's already some precedence for using it. I don't know if any of those cases have been analysed with performance or functionality in mind? Also, it'd be interesting to see some comparison about the containers we have in the "core" today vs what functionality of STL we need (and is missing from our libraries).

That much said, I think this is a healthy discussion, and we probably should make an official policy regarding STL and boost?

-- Leif

Reply via email to