Original Post
In an attempt to keep my code object-oriented and while trying to avoid the extra get() function call, I did the following: 1. Created a singleton class 2. Inlined the get() function 3. #define virtualInstanceName classname::get() This way, I use virtualInstanceName like a normal instance of the class and hopefully, avoid that extra call. It's working fine with me but I'd like to know what ppl think about this approach and whether it actually serves its purpose. I'm just experimenting.