Explicitly defaulted move constructor

前端 未结 2 2086
广开言路
广开言路 2020-12-18 00:28

According to the c++11 standard a default move constructor is only generated if:

  • X does not have a user-declared copy constructor, and
  • X does not have
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 01:18

    Yes, you can always explicitly invoke the default generation for functions that can be automatically generated with = default. That's what the syntax is for.

提交回复
热议问题