How to use lambda functions with boost::bind/std::bind in VC++ 2010?

后端 未结 3 2071
太阳男子
太阳男子 2021-02-07 09:25

I have some lambda functions which I want to bind using either boost::bind or std::bind. (Don\'t care which one, as long as it works.) Unfortunately both of them give me differe

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 09:38

    std::function f1 = [](){ std::cout<<"f1()"< f2 = [](int x){ std::cout<<"f2() x="< f3 = [](){ std::cout<<"f3()"< f4 = [](int x){ std::cout<<"f4() x="<

提交回复
热议问题