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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -