template struct container { T m; void forward_member_function() { m.member_function(); } }; struct a { void member_function() {} }; struct b { }; struct __declspec(dllexport) my_class : public container { }; void test_main() { container c; c.forward_member_function(); container d; }