I have a variable std::vector<std::vector<float>> I want to pass this variable to a function which accepts array of array of float **float. I was wondering if there is any way to do this?
-
6If you already have a vector then you should stay away from the arrays and pointers.Ron– Ron2018-03-19 17:43:15 +00:00Commented Mar 19, 2018 at 17:43
-
1Not a duplicate, in my opinion. The dupe shows that a vector is an array, behind the scenes. That doesn't work with a vector of vectors.Drew Dormann– Drew Dormann2018-03-19 17:44:04 +00:00Commented Mar 19, 2018 at 17:44
-
3@Ron Legacy APIs, man!tadman– tadman2018-03-19 17:44:08 +00:00Commented Mar 19, 2018 at 17:44
-
5@Drise True, but to do that you need to solve this conversion problem first, so we're right back to the original question.tadman– tadman2018-03-19 17:45:32 +00:00Commented Mar 19, 2018 at 17:45
-
2Show us the signature of function in question.SergeyA– SergeyA2018-03-19 17:46:27 +00:00Commented Mar 19, 2018 at 17:46
|
Show 4 more comments