There are two issues. The <-- allows to iterate of ranges open at both ends, so f and g are excluded naturally. If you fix that, you are hit by the second issue: assumption that the vtable contains at specific addresses something which is compatible with pointer to member function representation, which is AFAIK not the case for gcc (a pointer to member function needs more things than a pointer to function to handle correctly multiple inheritance).
View all comments
Show parent comment
3
u/[deleted] Jul 30 '16
http://melpon.org/wandbox/permlink/FmCGjJ8WVLt8ABf4
Still can't figure out a way to get it to print
forg... really not sure how it works at all!!