Not without confusing the code massively. Parametrising on field names is one thing c++ is bad at.