
AMDG Nathan Ridge wrote:
Here's a question for the preprocessor metaprogramming experts out there.
I have some classes that need to have write() methods that look like this:
template <typename output> bool write(output& out) const { return utils::write(out, member_1) && utils::write(out, member_2) && ... utils::write(out, member_n);
}
where member_1, member_2, ..., member_n are the member variables of the class.
#include