I have a pretty big piece of code that I isolated in a header + implementation. This code is now a function
The whole code gets the data passed mostly by reference. The problem is that at some point, the function operates on a two dimensional vector of short int type, and this is what i came up with after several attemps:
function x ( vector<vector < short int > >& pwm_sequence );
Is this the right way to pass it?
Also, what possible flaws this passing might bring? If I want it as a const, where do i pass the const?
Thanks.



LinkBack URL
About LinkBacks





