Watch window shows ‘CXX0058: Error: overloaded operator not found’

If you add a Watch for std::vector using array subscript operator, like, myVector[5], then Visual Studio 2010 instead of showing value, will show the error: ‘CXX0058: Error: overloaded operator not found’. However when you cover std::vector with mouse, the tooltip watch will show correct values.

CXX0058: Error: overloaded operator not found

The workaround for the STL vector is to use:
myVector._Myfirst[5]
instead of
myVector[5]

Found this solution in StackOverflow.

Leave a Reply

Your email address will not be published.