Need help with C2676: binary '['... ERROR

Apr 4, 2013 at 4:41am
Anytime I try to access part of an array, ba[index] for example, It gives me this error, even when I print out.
C2676: binary '[' : 'BitArray' does not define this operator or a conversion to a type acceptable to the predefined operator

class
Last edited on Apr 4, 2013 at 5:35am
Apr 4, 2013 at 5:46am
only predefined types have the [] operator built into the behavior. If BitArray is a class that you created, you will need to overload the operator.
Topic archived. No new replies allowed.