Better HN
topnewbestaskshowjobs
Log inSign up

cpp_noob

0 karma · joined Dec 5, 2024 (1y ago) · 1 submissions

Submissions

comment 1y ago · link · parent

  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?