Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A{
- public:
- template<class X>
- void New(){
- return ;
- }
- };
- template<class X>
- class B : public X{
- public:
- B(){
- X::New<B>();
- }
- };
- B<A> ba;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement