I have a class like this:Simple usage:Since the "some-method" will be called quite frequently, I'd like to do something to allow users to use it like below:
Based on c++ operator doc, ',' is a left to right operator. It is meaning a, b, c, d meaning (((a, b), c),d) not (a, (b, (c, d))). This is important if a, b, c, d are statements.
In the class below, Why would you make the operators explicit. I thought that explicit was to prevent implicit calling of constructors?