
10 Dec
2004
10 Dec
'04
11:49 a.m.
On 12/10/2004 03:19 AM, Peder Holt wrote: [snip]
Still, the problem in his post applies to typedefs. If A<T>::B is a nested class or struct under A<T>, and not a typedef, deduction should always be possible. Yes. Our posts crossed. I had same idea.
In the case where B is a typedef: typedef typename some_class<T> B; you can deduce some_class<T> instead of A<T>::B
Do you mean in the case of Roni's example, that you can deduce by substitution, i.e. can_deduce: select<B, int, int *>::type --substitute--> can_deduce: select<(C1<T>::value != C2<T>::value), int, int *>::type ?