Advertisement
JoshDreamland

JDI's bane

Jan 26th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. template<typename t> class C1 {
  2.   template<typename X> struct rebind {
  3.     typedef C1<X> other;
  4.   };
  5. };
  6.  
  7. template<typename> class C2;
  8.  
  9. template<> class C2<void> {
  10.   template<typename X> struct rebind {
  11.     typedef C2<X> other;
  12.   };
  13. };
  14.  
  15. template<typename t> class C2: public C1<t>
  16. {
  17.   template<typename X> struct rebind {
  18.     typedef C2<X> other;
  19.   };
  20. };
  21.  
  22. C2<int> blowup;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement