BruceLH
April 27th, 2004, 08:52 AM
I'm trying to wrap an unmanged class but am having problems with the [] operator.
The compiler gives an error saying, "Try using static bool op_<name>". However, there is no op_<name> for the [] operator.
I looked into IEnumerable as that is the way C# uses the [] operator but didn't have any luck there either.
So if anyone knows how to overload the [] operator in manged C++ I'd definitaly like to know.
Thanks in advance.
The compiler gives an error saying, "Try using static bool op_<name>". However, there is no op_<name> for the [] operator.
I looked into IEnumerable as that is the way C# uses the [] operator but didn't have any luck there either.
So if anyone knows how to overload the [] operator in manged C++ I'd definitaly like to know.
Thanks in advance.