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 11:15:52


On Sun, 30 May 2010, KTC wrote:

> On 30/05/2010 02:08, Jeremiah Willcock wrote:
>
>> OK, thanks. With more trimming now:
>>
>> <snip>
>
> Too much trimming. That one compiled fine.

OK. Here's a new version:

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

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

struct distributedS {};

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

template <typename P, typename InEdgeIndex, typename T, typename Bundle>
struct property_map<
          compressed_sparse_row_graph<
            P,
            distributedS,
            InEdgeIndex
>, T Bundle::*>
{
   typedef double type;
};

struct vertex_prop {
   float member;
};

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

-- Jeremiah Willcock


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