|
Boost Testing : |
Subject: Re: [Boost-testing] [VC++10] Could someone please see if this compiles?
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-30 21:14:27
On Mon, 31 May 2010, KTC wrote:
> On 31/05/2010 01:58, Jeremiah Willcock wrote:
>> Now, trying the old one with just some things renamed (and no
>> initializer for x):
>>
>> <snip>
>>
>> I think I'll just submit this if it ends up failing.
>
> Too bad...
>
> 1>Build succeeded.
What about now:
template <typename G, typename P>
struct a {};
template <typename G, typename T, typename B>
struct a<G, T B::*> {
typedef int type;
};
struct c {};
template <typename P, typename R, typename Q>
struct d {};
template <typename P, typename T, typename B, typename Q>
struct a<d<P, c, Q>, T B::*> {
typedef double type;
};
struct e {
float member;
};
int main(int, char**) {
a<d<e, c, int>, float e::*>::type** x = (double**)0;
return 0;
}