Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Yes, it seems to be the good way... Indeed, I don't really understand the meaning of the & without referencing to a specific variable. So, I tried auto f0 = [&I](double theta) and there is no more compilation errors. Now I am finishing to rewrite my code in order to test if I can obtain the expected result.