Boost logo

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 15:02:39


On Sun, 30 May 2010, KTC wrote:

> On 30/05/2010 19:28, Jeremiah Willcock wrote:
>> On Sun, 30 May 2010, KTC wrote:
>>
>>> On 30/05/2010 17:07, Jeremiah Willcock wrote:
>>>
>>>>
>>>> Another one:
>>>>
>>>
>>> 1>Build succeeded.
>>
>> OK. New one:
>>
>
> 1>Build succeeded.

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;
}


Boost-testing list run by mbergal at meta-comm.com