[C++-sig] range with virtual functions

Piotr Jaroszynski p.jaroszynski at gmail.com
Wed Mar 28 17:15:16 CEST 2007


Hello,

I have yet another "problem" :] I want to expose a begin_foo and end_foo 
functions as an iterable object like:
.add_property("foo", range(&Blah:begin_foo, &Blah::end_foo))

How can I do it when begin_foo and end_foo are virtual functions? I am 
interested in both cases, when they are pure virtual and  virtual with 
default implementation.

TIA for help!

-- 
Best Regards,
Piotr Jaroszynski



More information about the Cplusplus-sig mailing list