Here is the exact error message on compilation:
error C3352: \'double MyNamespace::MyRefClass::MyFunction(const std::vector<_Ty> &
I don't see the word static in your method signature. If the method isn't static, you need to pass the object to the delegate constructor. Try this:
static
MyDelegate^ del = gcnew MyDelegate(this, &MyRefClass::MyFunction);