deleted by list. See the constructor for more details.
@param ownsflag if true, list will own entries
*/
- void ownsObjects(bool ownsflag = true)
+ void ownsObjects(bool ownsflag)
{ ownsEntries = ownsflag; }
/** Query whether list owns entries.
param iterator i
*/
inline void deleteContent(iterator i)
- { if(ownsEntries) delete *i; }
+ {
+ iterator *i_ptr = &i;
+ if(ownsEntries) delete i_ptr;
+ }
private:
/* the cast is needed for MS VC++ 5.0 */ \
{ return (type *)((kbList::iterator *)this)->operator*() ; } \
}; \
- inline name(bool ownsEntriesFlag = TRUE) \
+ inline name(bool ownsEntriesFlag = true) \
: kbList(ownsEntriesFlag) {} \
\
inline type *pop_back(void) \