operator[] in 2.0
Managed C++/CLI
2
Posts
2
Posters
0
Views
1
Watching
-
How do I overload that operator? I wrote a ref class, and I want to implement [] operator. I tried various ways, without success. What is the exact synrax? I Hate MC++. Thanks.
-
How do I overload that operator? I wrote a ref class, and I want to implement [] operator. I tried various ways, without success. What is the exact synrax? I Hate MC++. Thanks.
I don't use MC++, but the operator signatures for operator[] in most flavors of C++ is typically as follows: // return element for read/write T& operator[](int index); // return element for read-only const T& operator[](int index) const; Hope that was what you were looking for.