I have the following function:
int Foo(string sentence);
I want to know what is the maximum string length I could pass? I think it should depend on the stack size allocated to the function as this string will be copied to the stack, is that true? or it depends on string::max_size value? I'm using C++ under VS2010, windows7
EDIT. I need to have a copy as the function modifies the string contents.