C++ guarantee and name for POD-like data, memcpy capable

后端 未结 4 719
小鲜肉
小鲜肉 2020-12-17 10:59

In another question I incorrectly used the term POD to refer to data types that aren\'t actually POD types (on account of having a constructor). Now, I\'ve looked through th

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 11:04

    The notion of POD in C++03 is too strict indeed. In C++0x POD is generalized to include the objects you described too. So don't worry, you can name it POD. See a nice summery on Wikipedia.

提交回复
热议问题