6 virtual void do_something() = 0;
12 template <typename R, typename O>
13 struct Foo_impl<R (O::*)() const> : public Foo
17 typedef int Some_type;
18 operator Some_type () const { return 0; }
19 Helper( R (O::*)() const) {}
22 void do_something() { Helper( 0); };
25 void register_foo_internal( Foo*) {};
27 template <typename TT>
28 void register_foo( TT) { register_foo_internal( new Foo_impl<TT>()); }
36 register_foo( (int (Bar::*) () const) 0);