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 12:07:45


On Sun, 30 May 2010, KTC wrote:

> On 30/05/2010 16:35, Jeremiah Willcock wrote:
>> On Sun, 30 May 2010, KTC wrote:
>>
>>> On 30/05/2010 16:24, Jeremiah Willcock wrote:
>>>
>>>> What about this one? And thanks for your patience testing all of
>>>> these out.
>>>>
>>>
>>> It's just copy & paste and a few mouse click, not a problem. :)
>>>
>>> That one is too much trimming.
>>> 1>Build succeeded.
>>
>> OK. New one:
>
> 1>Build succeeded.

Another one:

template <typename Graph, typename Property>
struct property_map {};

template <typename T, typename B>
struct pm {};

template <typename Graph, typename T, typename Bundle>
struct property_map<Graph, pm<T, Bundle> > {
   typedef int type;
};

struct distributedS {};

template <typename P,
           typename Vertex,
           typename Q>
struct compressed_sparse_row_graph {};

template <typename P, typename T, typename Bundle, typename Q>
struct property_map<
          compressed_sparse_row_graph<
            P,
            distributedS,
            Q>,
          pm<T, Bundle> >
{
   typedef double type;
};

struct vertex_prop {
   float member;
};

int main(int, char**) {
   property_map<
     compressed_sparse_row_graph<
       vertex_prop, distributedS, int>,
     pm<float, vertex_prop> >::type** x = (double**)0;
   return 0;
}


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