I was writing a conversion operator that was to convert a class to an lvalue or an rvalue. So I assumed that:
struct C
{
template<typename T> T&&();
};
would have added both. I was surprised that it instead only added a conversion operator which converted to an rvalue of type T
. Was that intentional by the standard or is this a bug in g++, clang++ and VC++?
Because of this, it yet again, requires duplication of more functions. :(
Aucun commentaire:
Enregistrer un commentaire