I try to compile some code in visual studio 2013 (community edition), but I have problems : the following code refuse to compile.
struct X
{
X(double y);
};
typedef X Z;
struct Y : public Z
{
using Z::Z;
};
The problem is the line using Z::Z. It gives me an error C2039: 'Z' : is not a member of 'X'
Is this code valid ? or is this a bug ?
Aucun commentaire:
Enregistrer un commentaire