look at this you'll understand what X takes. it actually can take anything.

interview (intervieweree)
template<class T>
class X
{
public:
T a;
};

template<template<typename U> class T1, class T2>
class Y
{
public:
T1<float> b;

};
X<int> x;
Y<X, int> aY;

int main()
{

return 0;
}
(#375736@0)
2002-2-21 -05:00

回到话题: What's the actual type passed as T to instanciate X? This puzzled me!

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=375736