Arduino_Vector icon indicating copy to clipboard operation
Arduino_Vector copied to clipboard

Using Vector as an class field deletes the constructor?

Open poiNt3D opened this issue 5 years ago • 0 comments

This gives "use of deleted function 'Person::Person(Person&&)'" error. Works without Vector vec.

#include<Vector.h>

class Person {
public:
  Vector<int> vec;
  Person(){
    ; //some code
  }
};

void setup() {
  Person person = Person();
}
 
void loop() { 
  }
}

poiNt3D avatar Oct 26 '19 12:10 poiNt3D