jeudi 4 mars 2021

Referencing deleted destructor

ALL,

I have a following code:

struct Foo
{
    int type;
    union
    {
        int intValue;
        double doubleValue;
        std::string stringValue;
    } value;
};

and then in the cpp file I have:

std::vector<Foo> row;
some_class_object->func( row );

and I got:

error C2280: 'void *Foo::__delDtor(unsigned int)': attempting to reference a deleted function 

What is the problem here?

TIA!!

Aucun commentaire:

Enregistrer un commentaire