My Puzzle: inline static class::method with static variableThank you, [b]coder777[/b] I think you are right, I know how to solve the problem now.
How I can check if a variable is initialized?You should initialize it when you use it the first time. just like: [code] int* ptr = 0; [/code] ...
My Puzzle: inline static class::method with static variableThanks for the suggestions. I have do some modify, I think it will be better. [code] // singleton...
My Puzzle: inline static class::method with static variableexample: [code] // singleton_object.h class SingletonObject { public: inline static Sing...
This user does not accept Private Messages