Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    "it says that there is no start point reference", "it says that there is no viable conversion", ... please stop describing code and compiler errors conversationally. Just paste them into the question. I have no idea what a "start point reference" is in general and can't see any code with those tokens in. Commented Feb 20 at 16:13
  • You should edit your question to include any additional details, comments can be deleted at any moment. Commented Feb 20 at 16:24
  • I added the errors to the question Commented Feb 20 at 16:40
  • Make it for (auto i : *values) (note the star), since values is a std::vector<double>* - a pointer to a vector. Commented Feb 20 at 17:33
  • If you want to keep evaluateFold taking vector*, but have subFromLeft take vector&, then the former should call the latter as subFromLeft(*values) (again, note the star). Though you probably want to choose one form of the parameter and stick with it. Commented Feb 20 at 17:36