OK, it works now, if I expose User, BaseWrap and Derived and use bases<Base>. I was commenting out too much code to make the example smaller :( Thanks, Koen.