Function pointers working as closures in C++

前端 未结 4 1416
情书的邮戳
情书的邮戳 2021-01-19 13:53

Is there a way in C++ to effectively create a closure which will be a function pointer? I am using the Gnu Scientific Library and I have to create a gsl_function. This funct

4条回答
  •  执念已碎
    2021-01-19 14:30

    Take a look at this simple example of combining boost::bind and boost::function.

提交回复
热议问题