c++ - calling static function from constructor of same class -


can call static function constructor of same class.

class a{     static void fun();     a() {fun();} }; 

it giving error while linking code. using visual studio c++, 2010.

yes can - long provide function definition static function well.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -