S
s5n
Hello, all!
i KNOW i saw a reference to this in a book once, labeled as a "rarely
used" feature (i think it was Scott Meyers), but i can't for the life
of me find an example of it now (i even dug through Stroustrup's
book).
a) What is the syntax for a pointer-to-member-variable (NOT member
function)
b) Can such a pointer be used as a template parameter argument, like a
function pointer can?
i'd be very grateful for any tips!
i KNOW i saw a reference to this in a book once, labeled as a "rarely
used" feature (i think it was Scott Meyers), but i can't for the life
of me find an example of it now (i even dug through Stroustrup's
book).
a) What is the syntax for a pointer-to-member-variable (NOT member
function)
b) Can such a pointer be used as a template parameter argument, like a
function pointer can?
i'd be very grateful for any tips!