JoshDreamland icon

JDI instantiation blindspot

JoshDreamland | PRO | 02/09/14 02:19:28 PM UTC | 0 ⭐ | 228 👁️ | Never ⏰ | []
C++ |

390 B

|

None

|

0 👍

/

0 👎

template<typename x> class isint {
  typedef double t;
};
template<> class isint<int> {
  typedef int t;
};
 
template<typename x> class X {
  template<typename y> class Y {
    typedef x ff;
    typedef typename isint<y>::t fff;
  };
};
 
template<typename z> class Z {
  typedef typename X<z>::template Y<z>::ff  one;
  typedef typename X<z>::template Y<z>::fff two;
};
 
Z<int> d;

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎