12345678910111213141516171819
struct test{ bool v0; bool v1; bool v2; bool v3; .... }; foo(const test T0, const test T1){ // how can i identify which member varaibe(T0.v0 or T0.v1 or ...) has been set to true with a min. code?? } int main{ ... test T0, T1; foo(T0, T1); }
12
if(T0.v0) /*...*/ //...