Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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 forgets to add new member to this functions.
Do you know any easy, not wrapp all members way which will remind developers to do something or write noop(memeber_name_) in this functions.

I tried to invent something but got fault.

PS: unit tests could prevent this problem, but I want something compile time.