65,186
社区成员




#include "stdafx.h"
#include <iostream>
#include <string>
#include <functional>
using namespace std;
void funR_VlaueReference(int && a)
{
std::cout << L"R_VlaueReference" << std::endl;
return;
}
int _tmain(int argc, _TCHAR* argv[])
{
std::function<void(int&&)> fun = std::bind(funR_VlaueReference, std::placeholders::_1);
return 0;
}
auto xx = std::bind(funR_VlaueReference, std::placeholders::_1);
xx(3);
这时候就会报错 int to int&&