add new member to copy c-tor/copy o-tor/serialization reminder

前端 未结 4 688
我在风中等你
我在风中等你 2021-01-05 00:10

Almost all c++ projects have classes with copy c-tor/copy operator/serialize method etc. Which usualy doing something with all members.

But sometimes developers forg

4条回答
  •  被撕碎了的回忆
    2021-01-05 00:44

    It looks like there is no satisfying solution to your problem (Iraimbilanja solution is probably one of the best approaches, but still it's not perfect). I wonder if there are features in upcoming C++0x that will allow to solve this?

提交回复
热议问题