[c++] How to pass optional arguments to a method in C++?