Where ClassA has an operator as such that returns ClassB:
class ClassA { public: ClassA(); ClassB &operator[](int index); }
If I want to access the specified operator from the ClassA constructor, like this:
ClassA::ClassA() {
At the moment, when I work, I just use the GetAtIndex (int index) method, which calls the [] operator, as well as the constructor.
It would be nice if I could access it in the same way that C # works:
// Note: This is C
Note: I am using g ++
source share