template<typename T>
void foo(T&& a)
{
cout << is_rvalue_reference<T>::value << endl;
}
struct O
{
};
O o;
foo(o); //T is deduced to o&,a is O&
foo(std::move(o)); //T is deduced to O,a is O&&
Hi,all. Is there any way to make foo output 1(T is deduced to O&&)?