c++ - calling const member function -


i have called const member function of object.

i created object on mainwindow, den called get_size() after setting size previously.

calling get_size() method of base class gtk::window.

it gives error: ‘gtk::window’ not accessible base of ‘mainwindow’.

mainwindow inherited gtk::window class

class mainwindow: gtk::window {  }; 

what reason this.

inhertance private default classes. need derive gtk::window publicly:

class mainwindow: public gtk::window { 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -