Steve & Igor,
I must admit I don't currently see why this happens, I'll probably have to
produce a minimal repro and ask bind experts for help.
For now, you might want to try the attached work-around (note the additional
conversion operator in class Object). This compiles for me on VC9.0 and
seems to work as expected. Yes, this is an ugly hack but it has the
advantage that it can be reverted relatively quickly once I've figured out
how to fix this bug. Alternatively, you could change Test so that it accepts
an Object * (or any smart ptr) rather than an Object &, but that would of
course require changes in several places in the code, not just one as in my
suggestion.
For now I'll have to stop here, I'll pursue this further next weekend.
HTH,
Andreas
#include