c++ - PC Lint Error while using templates -
when run pc lint application below mentioned code errors:
the errors line (1) are
error 129: declaration expected, identifier '__created' ignored
error 10: expecting identifier or other declarator
error 129: declaration expected, identifier 'typename' ignored
template<typename t,uint32 capacity> //(1) class {   public:     a();     t *alloc();     t *free( t *ptr);   //private members   private:     t *m_headptr;     t m_pool[capacity]; }   how can rid of errors?
save file c++ file correct ending or tell lint treat such, currently, seems treated c file.
Comments
Post a Comment