ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Понедельник
1 июля
68972 Топик полностью
Grau (15.09.2006 11:27, просмотров: 1) ответил ig_z на Ответ: Не пользую STL по причине юзания ею динамической памяти. Но я полагал, что иар сам не пишет STL. Может это у вас проблемы с динамической памятью?
Ответ: в доках сказано.. STANDARD EMBEDDED C++ ● The standard template library (STL) is excluded EXTENDED EMBEDDED C++ ● Full template support ● Namespace support To support Extended EC++, this product includes a version of the standard template library (STL), in other words, the C++ standard chapters utilities, containers, iterators, algorithms, and some numerics. This STL has been tailored for use with the Extended EC++ language, which means that there are no exceptions, no multiple inheritance, and no support for runtime type information (rtti). Moreover, the library is not in the std namespace. то есть получается, что библиотеку писали сами и сильно обкорнали.. Да и мои шаблоны, самописные, тоже кушать он не хочет. А по поводу динамической памяти - да, могут быть грабли. Но уж слишком это удобно, так что для какой-нибудь статической переменной можно и попользовать..