|
Boost Testing : |
Subject: Re: [Boost-testing] [VC++10] Could someone please see if this compiles?
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-29 21:08:00
On Sat, 29 May 2010, KTC wrote:
> On 29/05/2010 04:33, Jeremiah Willcock wrote:
>>>
>>> It doesn't compile.
>>
>> Thanks. Trimming down further, what about this one:
>>
>> <snip>
>
> Nope.
OK, thanks. With more trimming now:
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 Vertex,
typename EdgeIndex>
struct compressed_sparse_row_graph {};
template <typename InEdgeIndex, typename T, typename Bundle>
struct property_map<
compressed_sparse_row_graph<
distributedS,
InEdgeIndex
>, T Bundle::*>
{
typedef double type;
};
struct vertex_prop {
float member;
};
int main(int, char**) {
property_map<
compressed_sparse_row_graph<
distributedS, int>,
float vertex_prop::*>::type** x = (double**)0;
return 0;
}
-- Jeremiah Willcock