A
Arkadiy
Hi all,
I was under impression that the ETI bug was completely fixed in VC71.
However, recently I ran into a problem that makes me think otherwise.
The following minimal example demonstrates the problem that looks very
similar to ETI:
------------------------------
template<int n> struct Y
{
typedef void type;
};
template<> struct Y<4>
{};
template<class T>
T foo();
template <class T>
struct X
{
typedef typename Y<sizeof(foo<T>())>::type type;
};
int main()
{
return 0;
}
---------------------------------
Can anybody comment on this?
Thanks in advance and best regards,
Arkadiy
I was under impression that the ETI bug was completely fixed in VC71.
However, recently I ran into a problem that makes me think otherwise.
The following minimal example demonstrates the problem that looks very
similar to ETI:
------------------------------
template<int n> struct Y
{
typedef void type;
};
template<> struct Y<4>
{};
template<class T>
T foo();
template <class T>
struct X
{
typedef typename Y<sizeof(foo<T>())>::type type;
};
int main()
{
return 0;
}
---------------------------------
Can anybody comment on this?
Thanks in advance and best regards,
Arkadiy