Hacker News new | past | comments | ask | show | jobs | submit | cpp_noob's comments login

  struct Person {
    string name;
    uint8_t age;
  };
isn't this missing a move constructor?

  Person::Person(Person&& p) : name(std::move(p.name)), age(p.age) {}
or is C++ able to make these implicitly now?


The move and copy constructors are implicit.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: