I dont know if the best I can to do is to use vector <std::string> instead of array.
I have a fast method to pass some std::string values to a function
the_data is just a std::string*. It doesn't know how long it is. You'll have to pass the length separately or use a vector. This is true for any kind ow array.
hamsterman - this should only work with fixed length arrays right? This feels kind of obvious, still I kinda feel like asking cause I might have missed something (I mean, template instantiation is at compile time, so there is no way this could work with dynamic arrays?).