0

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?

9
  • 6
    If you already have a vector then you should stay away from the arrays and pointers. Commented Mar 19, 2018 at 17:43
  • 1
    Not 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. Commented Mar 19, 2018 at 17:44
  • 3
    @Ron Legacy APIs, man! Commented 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. Commented Mar 19, 2018 at 17:45
  • 2
    Show us the signature of function in question. Commented Mar 19, 2018 at 17:46

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.