And that will then be the 5th time the OP has been told (one way or another) that it needs to take a const reference.
The problem is that .NET does NOT have C++ as one of its languages. It has this thing called C++/CLI that is based on C++, but it isn't the same as C++, and you ran into one of the silly little differences. It should probably be const in both cases.I have no idea? Maybe one of them has a bug, or maybe one has an extension to try to make it more helpful?