Is it possible to return an object from a static method in C++ like there is in Java? I am doing this:
class MyMath { public: static MyObject calc
For this case, you want MyMath::calcSomething(). The '.' syntax is for calling functions in objects. The :: syntax is for calling functions in a class or a namespace.