|
Boost Testing : |
Subject: Re: [Boost-testing] [VC++10] Could someone please see if this compiles?
From: KTC (ktc_at_[hidden])
Date: 2010-05-30 20:56:56
On 30/05/2010 20:02, Jeremiah Willcock wrote:
>
> OK. Yet another:
>
> 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;
> a<d<e, c, int>, float e::*> x;
> return 0;
> }
1>Build succeeded.