#include <vector>
using namespace std;
struct A
{
vector<int> coll;
};
void f(const vector<int>&){}
void f(vector<int>&&){}
int main()
{
f(A().coll); // Is "A().coll" an xvalue?
}
Does C++11 guarantee f(A().coll)
will call void f(vector<int>&&)
?
Aucun commentaire:
Enregistrer un commentaire