I'm trying to do the same thing but I get an
"a nonstatic member reference must be relative to a specific object" compiler error. It appears the error is on the &s1::x resolution.
My "do" method does not take a reference to a struct, however. Instead it takes a pointer to a struct.
Thanks in advance for any help.
Erik