SourceComment: Using typedefs

Dear all

class BDecoder {

typedef std::auto_ptr BItem_Ptr;

….
      return std::auto_ptr( new BErrorItem );

return BItem_Ptr( new BErrorItem );

— cheers atul

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: SourceComment: Using typedefs
I agree with you we should use typedefs! What about keeping the style for class names and name it BItemPtr or BItemPointer. I've read somewhere, sorry I can provide a (more...)
Re: SourceComment: Using typedefs
Sorry it should be typedef std::auto_ptr BItem_Ptr; typo ;-) --- cheers atul atul wrote: Dear all class BDecoder { typedef std::auto_ptr BItem_Ptr; .... return std::auto_ptr( new BErrorItem ); return BItem_Ptr( new BErrorItem ); --- cheers (more...)