class - Inherited template classes -


first - i'm know noob question - hey - start being noobs, aren't we?... so, q: i'm want use inherited template classes, , i've having hard time dealing stuff. code, written in microsoft visual studio professional 2012:

template <class t> class { protected:     int f(){return 0}; };  template <class t> class b : public a<t> { protected:     int f2()     {         return this->;     } }; 

thing is, in auto-complete option, used see b 'variables', actual b variables along variables. when use template - can see class b variables, when writing down "this->". (needless - when delete template declarations - worked out fine, , "this->" give me both f() and f2() options) there's i'm doing wrong?

i think question duplicate of one:

templates: parent class member variables not visible in inherited class

the first answer of unclebens sums well.

[...]the template parent of template class not instantiated during compilation pass first examines template.[...]

he gives further information , link further reading.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -